File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/test/java/tools/jackson/databind/deser/enums Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 11package tools .jackson .databind .deser .enums ;
22
3- import java .io .IOException ;
4- import java .util .EnumSet ;
5-
63import org .junit .jupiter .api .Test ;
74
85import com .fasterxml .jackson .annotation .*;
@@ -83,6 +80,7 @@ enum MixinOverloadedDefault {
8380 B ,
8481 // Let's leave one un-annotated:
8582 C ,
83+ @ JsonEnumDefaultValue
8684 Z ;
8785 }
8886
@@ -271,14 +269,14 @@ public void testEmptyStringAsDefault() throws Exception
271269
272270 private <T > void _verifyOkDeserialization (ObjectReader reader , String fromValue ,
273271 Class <T > toValueType , T expValue )
274- throws IOException
272+ throws Exception
275273 {
276274 assertEquals (expValue , reader .forType (toValueType ).readValue (q (fromValue )));
277275 }
278276
279277 private <T > void _verifyFailingDeserialization (final ObjectReader reader ,
280278 final String fromValue , final Class <T > toValueType )
281- throws IOException
279+ throws Exception
282280 {
283281 try {
284282 reader .forType (toValueType ).readValue (q (fromValue ));
You can’t perform that action at this time.
0 commit comments