Skip to content

Commit 40699b8

Browse files
committed
Fix accidentally checked-in test fail
1 parent fb327c5 commit 40699b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/com/fasterxml/jackson/databind/tofix/JsonIgnoreProperties1622Test.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
1010
import com.fasterxml.jackson.databind.*;
1111
import com.fasterxml.jackson.databind.testutil.DatabindTestUtil;
12+
import com.fasterxml.jackson.databind.testutil.failure.JacksonTestFailureExpected;
1213

1314
import 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);

0 commit comments

Comments
 (0)