Skip to content

Commit 65f1e89

Browse files
committed
minor test fix
1 parent f568fd5 commit 65f1e89

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

yaml/src/test/java/com/fasterxml/jackson/dataformat/yaml/misc/ObjectAndTypeId231Test.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ public void testTypeAndObjectId231() throws Exception
3434
String yaml = "list:\n" +
3535
" - !Derived &id1\n" +
3636
" a: foo";
37-
Container container = MAPPER.readValue (yaml, Container.class);
37+
Container container = MAPPER.readValue(yaml, Container.class);
3838
assertNotNull(container);
3939
assertNotNull(container.list);
4040
assertEquals(1, container.list.size());
4141

42-
System.out.println (((Derived)container.list.get(0)).a);
42+
Base item = container.list.get(0);
43+
assertEquals(Derived.class, item.getClass());
44+
45+
assertEquals("foo", ((Derived) item).a);
4346
}
4447
}

0 commit comments

Comments
 (0)