File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/test/java/com/fasterxml/jackson/databind/tofix Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 99import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
1010import com .fasterxml .jackson .databind .*;
1111import com .fasterxml .jackson .databind .testutil .DatabindTestUtil ;
12+ import com .fasterxml .jackson .databind .testutil .failure .JacksonTestFailureExpected ;
1213
1314import static org .junit .jupiter .api .Assertions .*;
1415
@@ -137,6 +138,7 @@ public void setParent(ParentWithWorkaround parent) {
137138 * This test demonstrates the race condition: deserializing a child first
138139 * causes the parent deserialization to fail with "No _valueDeserializer assigned"
139140 */
141+ @ JacksonTestFailureExpected
140142 @ Test
141143 public void raceConditionWithChildFirst () throws Exception
142144 {
@@ -153,7 +155,7 @@ public void raceConditionWithChildFirst() throws Exception
153155 assertNotNull (deserializedChild );
154156 assertEquals ("Child1" , deserializedChild .getName ());
155157
156- // Now try to deserialize parent - this should fail with the race condition
158+ // Now try to deserialize parent - this fail with the race condition
157159 // Expected error: "No _valueDeserializer assigned"
158160 Parent deserializedParent = MAPPER .readValue (parentJson , Parent .class );
159161 assertNotNull (deserializedParent );
You can’t perform that action at this time.
0 commit comments