@@ -434,6 +434,30 @@ public void testDeserializationFromStringWithZeroZoneOffset03() throws Exception
434
434
assertEquals ("The value is not correct." , date , result );
435
435
}
436
436
437
+ @ Test
438
+ public void testDeserializationFromStringWithZeroZoneOffset04 () throws Exception {
439
+ Instant date = Instant .now ();
440
+ String json = formatWithZeroZoneOffset (date , "+00:30" );
441
+ Instant result = READER .readValue (json );
442
+ assertNotEquals ("The value is not correct." , date , result );
443
+ }
444
+
445
+ @ Test
446
+ public void testDeserializationFromStringWithZeroZoneOffset05 () throws Exception {
447
+ Instant date = Instant .now ();
448
+ String json = formatWithZeroZoneOffset (date , "+01:30" );
449
+ Instant result = READER .readValue (json );
450
+ assertNotEquals ("The value is not correct." , date , result );
451
+ }
452
+
453
+ @ Test
454
+ public void testDeserializationFromStringWithZeroZoneOffset06 () throws Exception {
455
+ Instant date = Instant .now ();
456
+ String json = formatWithZeroZoneOffset (date , "-00:00" );
457
+ Instant result = READER .readValue (json );
458
+ assertEquals ("The value is not correct." , date , result );
459
+ }
460
+
437
461
private String formatWithZeroZoneOffset (Instant date , String offset ){
438
462
return '"' + FORMATTER .format (date ).replaceFirst ("Z$" , offset ) + '"' ;
439
463
}
0 commit comments