Skip to content

Commit 29fab70

Browse files
committed
Minor cleanup for unit test code
1 parent cc7524c commit 29fab70

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/test/java/com/fasterxml/jackson/databind/jsontype/TestTypedContainerSerialization.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@
1919
public class TestTypedContainerSerialization
2020
extends BaseMapTest
2121
{
22-
/*
23-
/**********************************************************
24-
/* Helper types
25-
/**********************************************************
26-
*/
27-
2822
@JsonTypeInfo(use = Id.NAME, include = As.PROPERTY, property = "object-type")
2923
@JsonSubTypes( { @Type(value = Dog.class, name = "doggy"),
3024
@Type(value = Cat.class, name = "kitty") })
@@ -107,11 +101,11 @@ static class Issue508B extends Issue508A { }
107101

108102
/*
109103
/**********************************************************
110-
/* Unit tests
104+
/* Test methods
111105
/**********************************************************
112106
*/
113107

114-
public void testIssue265() throws Exception
108+
public void testPolymorphicWithContainer() throws Exception
115109
{
116110
Dog dog = new Dog("medor");
117111
dog.setBoneCount(3);

src/test/java/com/fasterxml/jackson/failing/TestUnwrappedWithCreator.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,15 @@ public String getName() {
5353

5454
public String getAlias() { return _alias; }
5555
}
56-
57-
public void testReadWriteJson() throws Exception
56+
57+
/*
58+
/**********************************************************
59+
/* Test methods
60+
/**********************************************************
61+
*/
62+
63+
// For [Issue#265] / [Scala#90]
64+
public void testUnwrappedWithCreator() throws Exception
5865
{
5966
JPerson person = new JPerson("MyName", new JAddress("main street", "springfield", "WA"), "bubba");
6067
ObjectMapper mapper = new ObjectMapper();

0 commit comments

Comments
 (0)