Skip to content

Commit 455c6a4

Browse files
committed
Another fix to make failing test fail properly :)
1 parent 63269d3 commit 455c6a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/tools/jackson/failing/ExternalTypeIdDup1410Test.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
import static org.junit.jupiter.api.Assertions.assertNotNull;
1212

13-
// 04-Sep-2024, tatu: Appears to pass on 3.0?
1413
public class ExternalTypeIdDup1410Test extends DatabindTestUtil
1514
{
1615
enum EnvironmentEventSource { BACKEND; }
@@ -83,7 +82,9 @@ public String toString() {
8382

8483
@Test
8584
void dupProps() throws Exception {
86-
ObjectMapper mapper = newJsonMapper();
85+
ObjectMapper mapper = jsonMapperBuilder()
86+
.enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
87+
.build();
8788
EnvironmentEvent event = new BackendEvent("foo", "hello", "bar", null);
8889
String ser = mapper
8990
.writerWithDefaultPrettyPrinter()

0 commit comments

Comments
 (0)