Skip to content

Commit

Permalink
Another fix to make failing test fail properly :)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Sep 5, 2024
1 parent 63269d3 commit 455c6a4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

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

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

@Test
void dupProps() throws Exception {
ObjectMapper mapper = newJsonMapper();
ObjectMapper mapper = jsonMapperBuilder()
.enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
.build();
EnvironmentEvent event = new BackendEvent("foo", "hello", "bar", null);
String ser = mapper
.writerWithDefaultPrettyPrinter()
Expand Down

0 comments on commit 455c6a4

Please sign in to comment.