Skip to content

Commit e5792f6

Browse files
committed
more minor unit test changes
1 parent 668b3be commit e5792f6

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<dependency>
5151
<groupId>com.fasterxml.jackson.core</groupId>
5252
<artifactId>jackson-core</artifactId>
53-
<version>2.8.1</version>
53+
<version>2.8.2-SNAPSHOT</version>
5454
</dependency>
5555

5656
<!-- and for testing we need a few libraries

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public class TestObjectIdWithUnwrapping1298 extends BaseMapTest
1515
private static Long nextId = 1L;
1616

1717
public static final class ListOfParents{
18-
@JsonUnwrapped
1918
public List<Parent> parents = new ArrayList<>();
2019

2120
public void addParent( Parent parent) { parents.add(parent);}
@@ -31,12 +30,11 @@ public static final class Parent {
3130
}
3231

3332
@JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id", scope = Child.class)
34-
public static final class Child {
35-
33+
public static final class Child
34+
{
3635
public Long id;
3736

38-
@JsonProperty
39-
private final String name;
37+
public final String name;
4038

4139
public Child(@JsonProperty("name") String name) {
4240
this.name = name;
@@ -76,10 +74,10 @@ public void testObjectIdWithRepeatedChild() throws Exception
7674
// .writerWithDefaultPrettyPrinter()
7775
.writeValue(sw, parents);
7876
} catch (Exception e) {
79-
System.out.println("Failed output so far: " + json);
77+
System.out.println("Failed output so far: " + sw);
8078
throw e;
8179
}
8280

83-
// System.out.println("Also works: " + sw);
81+
System.out.println("Also works: " + sw);
8482
}
8583
}

0 commit comments

Comments
 (0)