Skip to content

Commit afa7122

Browse files
committed
improve test
1 parent e2ff116 commit afa7122

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/test/java/com/fasterxml/jackson/databind/deser/TestForwardReference.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import com.fasterxml.jackson.databind.SerializationFeature;
1414

1515
import java.io.IOException;
16+
import java.util.ArrayList;
1617
import java.util.List;
1718

1819
/**
@@ -32,16 +33,13 @@ public void testForwardRef() throws IOException {
3233
" \"frc\" : \"willBeForwardReferenced\"," +
3334
" \"yac\" : {" +
3435
" \"@type\" : \"TestForwardReference$YetAnotherClass\"," +
35-
" \"frc\" : [ {" +
36-
" \"@type\" : \"Two\"," +
37-
" \"id\" : \"anotherInstance\"" +
38-
" }, {" +
36+
" \"frc\" : {" +
3937
" \"@type\" : \"One\"," +
4038
" \"id\" : \"willBeForwardReferenced\"" +
41-
" } ]," +
42-
" \"id\" : \"anId\"\n" +
43-
" },\n" +
44-
" \"id\" : \"ForwardReferenceContainerClass1\"\n" +
39+
" }," +
40+
" \"id\" : \"anId\"" +
41+
" }," +
42+
" \"id\" : \"ForwardReferenceContainerClass1\"" +
4543
"}", ForwardReferenceContainerClass.class);
4644

4745

@@ -72,7 +70,7 @@ public void setId(String id) {
7270
private static class YetAnotherClass
7371
{
7472
public YetAnotherClass() {}
75-
public List<ForwardReferenceClass> frc;
73+
public ForwardReferenceClass frc;
7674
public String id;
7775
}
7876

0 commit comments

Comments
 (0)