File tree Expand file tree Collapse file tree 4 files changed +6
-13
lines changed
datetime/src/test/java/com/fasterxml/jackson/datatype/jsr310 Expand file tree Collapse file tree 4 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -133,8 +133,7 @@ public void testDeserializationAsArrayDisabled() throws Throwable
133
133
READER .readValue ("['2000-01-01T12:00+00']" );
134
134
fail ("expected JsonMappingException" );
135
135
} catch (JsonMappingException e ) {
136
- verifyException (e , "Cannot deserialize" );
137
- verifyException (e , "START_ARRAY token" );
136
+ verifyException (e , "Cannot deserialize value of type `java.time.OffsetDateTime` from Array value" );
138
137
}
139
138
}
140
139
@@ -145,8 +144,7 @@ public void testDeserializationAsEmptyArrayDisabled() throws Throwable
145
144
READER .readValue ("[]" );
146
145
fail ("expected JsonMappingException" );
147
146
} catch (JsonMappingException e ) {
148
- verifyException (e , "Cannot deserialize" );
149
- verifyException (e , "START_ARRAY token" );
147
+ verifyException (e , "Cannot deserialize value of type `java.time.OffsetDateTime` from Array value" );
150
148
}
151
149
try {
152
150
READER .with (DeserializationFeature .UNWRAP_SINGLE_VALUE_ARRAYS )
Original file line number Diff line number Diff line change @@ -329,10 +329,7 @@ public void testDeserializationAsEmptyArrayDisabled() throws Throwable
329
329
READER .readValue ("[]" );
330
330
fail ("expected MismatchedInputException" );
331
331
} catch (MismatchedInputException e ) {
332
- // 17-Aug-2019, tatu: Message differs between 2.10 and 3.0...
333
- verifyException (e , "Cannot deserialize value of type" );
334
- verifyException (e , "java.time.Duration" );
335
- verifyException (e , "out of START_ARRAY" );
332
+ verifyException (e , "Cannot deserialize value of type `java.time.Duration` from Array value" );
336
333
}
337
334
try {
338
335
READER .with (DeserializationFeature .UNWRAP_SINGLE_VALUE_ARRAYS )
Original file line number Diff line number Diff line change @@ -95,8 +95,7 @@ public void testDeserializationAsArrayDisabled() throws Throwable
95
95
READER .readValue ("[\" +0300\" ]" );
96
96
fail ("expected MismatchedInputException" );
97
97
} catch (MismatchedInputException e ) {
98
- verifyException (e , "Cannot deserialize" );
99
- verifyException (e , "out of START_ARRAY" );
98
+ verifyException (e , "Cannot deserialize value of type `java.time.ZoneOffset` from Array value" );
100
99
}
101
100
}
102
101
@@ -107,8 +106,7 @@ public void testDeserializationAsEmptyArrayDisabled() throws Throwable
107
106
READER .readValue ("[]" );
108
107
fail ("expected MismatchedInputException" );
109
108
} catch (MismatchedInputException e ) {
110
- verifyException (e , "Cannot deserialize" );
111
- verifyException (e , "out of START_ARRAY" );
109
+ verifyException (e , "Cannot deserialize value of type `java.time.ZoneOffset` from Array value" );
112
110
}
113
111
try {
114
112
READER
Original file line number Diff line number Diff line change @@ -24,6 +24,6 @@ public StrictWrapper() { }
24
24
@ Test (expected = InvalidFormatException .class )
25
25
public void testStrictCustomFormat () throws Exception
26
26
{
27
- StrictWrapper w = MAPPER .readValue ("{\" value\" :\" 2019-11-31\" }" , StrictWrapper .class );
27
+ /* StrictWrapper w =*/ MAPPER .readValue ("{\" value\" :\" 2019-11-31\" }" , StrictWrapper .class );
28
28
}
29
29
}
You can’t perform that action at this time.
0 commit comments