@@ -213,34 +213,34 @@ public void testEmptyStringAsDefault() throws Exception
213
213
ObjectReader r = MAPPER .readerFor (SimpleEnumWithDefault .class )
214
214
.with (DeserializationFeature .READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE );
215
215
assertEquals (SimpleEnumWithDefault .ONE ,
216
- r .readValue (quote ("ONE" )));
216
+ r .readValue (q ("ONE" )));
217
217
assertEquals (SimpleEnumWithDefault .ZERO ,
218
- r .readValue (quote ("Zero" )));
218
+ r .readValue (q ("Zero" )));
219
219
assertEquals (SimpleEnumWithDefault .ZERO ,
220
- r .readValue (quote ("" )));
220
+ r .readValue (q ("" )));
221
221
assertEquals (SimpleEnumWithDefault .ZERO ,
222
- r .readValue (quote (" " )));
222
+ r .readValue (q (" " )));
223
223
224
224
// Also check with `null` coercion as well
225
225
ObjectReader r2 = MAPPER .readerFor (SimpleEnumWithDefault .class )
226
226
.with (DeserializationFeature .READ_UNKNOWN_ENUM_VALUES_AS_NULL );
227
- assertNull (r2 .readValue (quote ("" )));
228
- assertNull (r2 .readValue (quote (" " )));
227
+ assertNull (r2 .readValue (q ("" )));
228
+ assertNull (r2 .readValue (q (" " )));
229
229
}
230
230
231
231
private <T > void _verifyOkDeserialization (ObjectReader reader , String fromValue ,
232
232
Class <T > toValueType , T expValue )
233
233
throws IOException
234
234
{
235
- assertEquals (expValue , reader .forType (toValueType ).readValue (quote (fromValue )));
235
+ assertEquals (expValue , reader .forType (toValueType ).readValue (q (fromValue )));
236
236
}
237
237
238
238
private <T > void _verifyFailingDeserialization (final ObjectReader reader ,
239
239
final String fromValue , final Class <T > toValueType )
240
240
throws IOException
241
241
{
242
242
try {
243
- reader .forType (toValueType ).readValue (quote (fromValue ));
243
+ reader .forType (toValueType ).readValue (q (fromValue ));
244
244
fail ("Deserialization should have failed" );
245
245
} catch (InvalidFormatException e ) {
246
246
verifyException (e , "Cannot deserialize value of type" );
0 commit comments