Skip to content

Commit 952df3f

Browse files
committed
Enable #2020 test
1 parent 2e2f4e1 commit 952df3f

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

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

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,6 @@ abstract static class StringWrapperMixIn {
7878
}
7979

8080
// [databind#2020]
81-
@JsonIgnoreProperties("size")
82-
abstract class MyPairMixIn8 { // with and without <Long, String>
83-
@JsonCreator
84-
public Pair2020 with(@JsonProperty("value0") Object value0,
85-
@JsonProperty("value1") Object value1)
86-
{
87-
// body does not matter, only signature
88-
return null;
89-
}
90-
}
91-
9281
static class Pair2020 {
9382
final int x, y;
9483

@@ -97,14 +86,23 @@ private Pair2020(int x0, int y0) {
9786
y = y0;
9887
}
9988

100-
@JsonCreator
10189
static Pair2020 with(Object x0, Object y0) {
102-
// static Pair2020 with(@JsonProperty("value0") Object x0, @JsonProperty("value1")Object y0) {
103-
return new Pair2020(((Number) x0).intValue(),
90+
return new Pair2020(((Number) x0).intValue(),
10491
((Number) y0).intValue());
10592
}
10693
}
10794

95+
@JsonIgnoreProperties("size")
96+
static class MyPairMixIn8 { // with and without <Long, String>
97+
@JsonCreator
98+
static TestMixinDeserForCreators.Pair2020 with(@JsonProperty("value0") Object value0,
99+
@JsonProperty("value1") Object value1)
100+
{
101+
// body does not matter, only signature
102+
return null;
103+
}
104+
}
105+
108106
/*
109107
/**********************************************************
110108
/* Unit tests
@@ -144,7 +142,6 @@ public void testFactoryDelegateMixIn() throws IOException
144142
}
145143

146144
// [databind#2020]
147-
/*
148145
public void testFactoryPropertyMixin() throws Exception
149146
{
150147
ObjectMapper objectMapper = new ObjectMapper();
@@ -155,5 +152,4 @@ public void testFactoryPropertyMixin() throws Exception
155152
assertEquals(456, pair2.x);
156153
assertEquals(789, pair2.y);
157154
}
158-
*/
159155
}

0 commit comments

Comments
 (0)