Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tools.jackson.databind.tofix;
package tools.jackson.databind.deser;

import org.junit.jupiter.api.Test;

Expand All @@ -8,7 +8,6 @@
import tools.jackson.databind.exc.UnrecognizedPropertyException;
import tools.jackson.databind.json.JsonMapper;
import tools.jackson.databind.testutil.DatabindTestUtil;
import tools.jackson.databind.testutil.failure.JacksonTestFailureExpected;

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

Expand All @@ -23,7 +22,6 @@ static class B {
}


@JacksonTestFailureExpected
@Test
void failOnUnknownPropertyUnwrapped() throws Exception {
final ObjectMapper mapper = JsonMapper.builder()
Expand All @@ -33,7 +31,6 @@ void failOnUnknownPropertyUnwrapped() throws Exception {
final String JSON = "{'field': 'value', 'bad':'bad value'}";
try {
mapper.readValue(a2q(JSON), A.class);
fail("Exception was not thrown on unknown property");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What?! No. This is the whole thing to check -- why issue #650 is still valid.

} catch (UnrecognizedPropertyException e) {
verifyException(e, "Unrecognized property");
}
Expand Down
Loading