Skip to content

Commit 303bab1

Browse files
committed
Add clarifying comments
1 parent c4983ac commit 303bab1

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

platform-tests/src/test/java/org/junit/platform/engine/UniqueIdTests.java

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import java.io.ObjectInputStream;
2525
import java.io.ObjectOutputStream;
2626
import java.util.Base64;
27+
import java.util.List;
2728
import java.util.Optional;
2829

2930
import org.junit.jupiter.api.Nested;
@@ -318,7 +319,14 @@ void roundTrip() throws IOException, ClassNotFoundException {
318319
}
319320

320321
@Test
321-
void deserializeromJunit60() throws IOException, ClassNotFoundException {
322+
void deserializeFromJunit60() throws IOException, ClassNotFoundException {
323+
/*
324+
Serialized representation of:
325+
new UniqueId(
326+
new UniqueIdFormat('[', ':', ']', '/'),
327+
List.of(new Segment("engine", "junit-jupiter"))
328+
);
329+
*/
322330
var uniqueIdFromJunit60 = Base64.getMimeDecoder().decode("""
323331
rO0ABXNyACJvcmcuanVuaXQucGxhdGZvcm0uZW5naW5lLlVuaXF1ZUlkAAAAAAAAAAECAAJMAAhzZWdtZW50c3QAEExqYXZhL3V0
324332
aWwvTGlzdDtMAA51bmlxdWVJZEZvcm1hdHQAKkxvcmcvanVuaXQvcGxhdGZvcm0vZW5naW5lL1VuaXF1ZUlkRm9ybWF0O3hwc3IA
@@ -343,6 +351,13 @@ void deserializeromJunit60() throws IOException, ClassNotFoundException {
343351

344352
@Test
345353
void deserializeFromJunit60IgnoresCustomFormat() throws IOException, ClassNotFoundException {
354+
/*
355+
Serialized representation of:
356+
new UniqueId(
357+
new UniqueIdFormat('{', '=', '}', ','),
358+
List.of(new Segment("engine", "junit-jupiter"))
359+
);
360+
*/
346361
var uniqueIdWithCustomFormatFromJunit60 = Base64.getMimeDecoder().decode("""
347362
rO0ABXNyACJvcmcuanVuaXQucGxhdGZvcm0uZW5naW5lLlVuaXF1ZUlkAAAAAAAAAAECAAJMAAhzZWdtZW50c3QAEExqYXZhL3V0
348363
aWwvTGlzdDtMAA51bmlxdWVJZEZvcm1hdHQAKkxvcmcvanVuaXQvcGxhdGZvcm0vZW5naW5lL1VuaXF1ZUlkRm9ybWF0O3hwc3IA

0 commit comments

Comments
 (0)