Skip to content

Commit acb3143

Browse files
committed
minor test fix
1 parent 4ef9058 commit acb3143

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/test/java/com/fasterxml/jackson/databind/mixins/MixinsCircularTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ static class Third {
2828
/**********************************************************************
2929
*/
3030

31-
protected final ObjectMapper MAPPER = jsonMapperBuilder().build();
32-
3331
public void testPojoMixinDeserialization() throws Exception {
34-
ObjectMapper mxMapper = MAPPER
32+
ObjectMapper mxMapper = jsonMapperBuilder()
3533
.addMixIn(First.class, Second.class)
3634
.addMixIn(Second.class, Third.class)
37-
.addMixIn(Third.class, First.class);
35+
.addMixIn(Third.class, First.class)
36+
.build();
3837

3938
// first deserialized from second
4039
First first = mxMapper.readValue(a2q("{'second-mixin':'second-mixin'}"), First.class);
@@ -50,10 +49,11 @@ public void testPojoMixinDeserialization() throws Exception {
5049
}
5150

5251
public void testPojoMixinSerialization() throws Exception {
53-
ObjectMapper mxMapper = MAPPER
52+
ObjectMapper mxMapper = jsonMapperBuilder()
5453
.addMixIn(First.class, Second.class)
5554
.addMixIn(Second.class, Third.class)
56-
.addMixIn(Third.class, First.class);
55+
.addMixIn(Third.class, First.class)
56+
.build();
5757

5858
// first serialized as second
5959
First firstBean = new First();

0 commit comments

Comments
 (0)