Skip to content

Commit 1ddce1c

Browse files
committed
Add clarifying comments
1 parent c4983ac commit 1ddce1c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,14 @@ void roundTrip() throws IOException, ClassNotFoundException {
318318
}
319319

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

344351
@Test
345352
void deserializeFromJunit60IgnoresCustomFormat() throws IOException, ClassNotFoundException {
353+
/*
354+
Serialized representation of:
355+
new UniqueId(
356+
new UniqueIdFormat('{', '=', '}', ','),
357+
List.of(new Segment("engine", "junit-jupiter"))
358+
);
359+
*/
346360
var uniqueIdWithCustomFormatFromJunit60 = Base64.getMimeDecoder().decode("""
347361
rO0ABXNyACJvcmcuanVuaXQucGxhdGZvcm0uZW5naW5lLlVuaXF1ZUlkAAAAAAAAAAECAAJMAAhzZWdtZW50c3QAEExqYXZhL3V0
348362
aWwvTGlzdDtMAA51bmlxdWVJZEZvcm1hdHQAKkxvcmcvanVuaXQvcGxhdGZvcm0vZW5naW5lL1VuaXF1ZUlkRm9ybWF0O3hwc3IA

0 commit comments

Comments
 (0)