File tree 1 file changed +17
-0
lines changed
datetime/src/test/java/com/fasterxml/jackson/datatype/jsr310
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -429,8 +429,25 @@ public void testDeserializationWithTypeInfoAndStringTooLarge02() throws Exceptio
429
429
m .readValue (
430
430
"[\" " + Instant .class .getName () + "\" ," +customInstant +"]" , Temporal .class
431
431
);
432
+ System .out .println ("test" );
432
433
}
433
434
435
+ /**
436
+ * This test can potentially hang the VM, so exit if it doesn't finish
437
+ * within a few seconds.
438
+ *
439
+ * @throws Exception
440
+ */
441
+ @ Test (timeout =13000 , expected = JsonParseException .class )
442
+ public void testDeserializationWithTypeInfoAndStringTooFractional01 () throws Exception
443
+ {
444
+ String customInstant = "1e-100000000000" ;
445
+ ObjectMapper m = newMapper ()
446
+ .addMixIn (Temporal .class , MockObjectConfiguration .class );
447
+ m .readValue (
448
+ "[\" " + Instant .class .getName () + "\" ," +customInstant +"]" , Temporal .class
449
+ );
450
+ }
434
451
435
452
@ Test
436
453
public void testCustomPatternWithAnnotations01 () throws Exception
You can’t perform that action at this time.
0 commit comments