-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consistent stack traces for failing tests in Databind.
- Loading branch information
Showing
4 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
File renamed without changes.
29 changes: 29 additions & 0 deletions
29
framework/projects/JacksonDatabind/compile-errors/TestExcDeser-50-57.optional.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
diff --git a/src/test/java/com/fasterxml/jackson/databind/deser/TestExceptionDeserialization.java b/src/test/java/com/fasterxml/jackson/databind/deser/TestExceptionDeserialization.java | ||
index 391ee8386..ab2f03415 100644 | ||
--- a/src/test/java/com/fasterxml/jackson/databind/deser/TestExceptionDeserialization.java | ||
+++ b/src/test/java/com/fasterxml/jackson/databind/deser/TestExceptionDeserialization.java | ||
@@ -51,7 +51,7 @@ public class TestExceptionDeserialization | ||
/********************************************************** | ||
*/ | ||
|
||
- final ObjectMapper MAPPER = new ObjectMapper(); | ||
+ final ObjectMapper MAPPER = new ObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); | ||
|
||
public void testIOException() throws IOException | ||
{ | ||
@@ -78,6 +78,7 @@ public class TestExceptionDeserialization | ||
public void testWithNullMessage() throws IOException | ||
{ | ||
final ObjectMapper mapper = new ObjectMapper(); | ||
+ mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); | ||
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); | ||
String json = mapper.writeValueAsString(new IOException((String) null)); | ||
IOException result = mapper.readValue(json, IOException.class); | ||
@@ -101,6 +101,7 @@ public class TestExceptionDeserialization | ||
// [databind#381] | ||
public void testSingleValueArrayDeserialization() throws Exception { | ||
final ObjectMapper mapper = new ObjectMapper(); | ||
+ mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); | ||
mapper.enable(DeserializationFeature.UNWRAP_SINGLE_VALUE_ARRAYS); | ||
final IOException exp; | ||
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters