File tree 3 files changed +8
-3
lines changed
datetime/src/test/java/com/fasterxml/jackson/datatype/jsr310/key
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -77,15 +77,15 @@ public void testDeserialization2() throws Exception {
77
77
78
78
@ Test
79
79
public void testSerializationToInstantWithNanos () throws Exception {
80
- String value = newMapperBuilder ().enable (SerializationFeature .WRITE_DATE_KEYS_AS_TIMESTAMPS ).build ()
80
+ String value = mapperBuilder ().enable (SerializationFeature .WRITE_DATE_KEYS_AS_TIMESTAMPS ).build ()
81
81
.writerFor (TYPE_REF ).writeValueAsString (asMap (DATE_TIME_1 , "test" ));
82
82
Assert .assertEquals ("Value is incorrect" ,
83
83
mapAsString (String .valueOf (DATE_TIME_1 .toEpochSecond ()) + '.' + DATE_TIME_1 .getNano (), "test" ), value );
84
84
}
85
85
86
86
@ Test
87
87
public void testSerializationToInstantWithoutNanos () throws Exception {
88
- String value = newMapperBuilder ().enable (SerializationFeature .WRITE_DATE_KEYS_AS_TIMESTAMPS )
88
+ String value = mapperBuilder ().enable (SerializationFeature .WRITE_DATE_KEYS_AS_TIMESTAMPS )
89
89
.disable (SerializationFeature .WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS ).build ()
90
90
.writerFor (TYPE_REF ).writeValueAsString (asMap (DATE_TIME_1 , "test" ));
91
91
Assert .assertEquals ("Value is incorrect" ,
Original file line number Diff line number Diff line change @@ -77,7 +77,11 @@ Michael O'Keeffe (kupci@github)
77
77
Michał Żmuda (zmumi@github)
78
78
* Reported #127 : ZonedDateTime in map keys ignores option to write Zone IDs
79
79
(2.10.1 )
80
+ * Reported #128 : Timestamp keys from `ZonedDateTime`
81
+ (2.11.0 )
80
82
81
83
Vetle Leinonen-Roeim (vetler@github)
82
84
* Contributed fix for #127 : ZonedDateTime in map keys ignores option to write Zone IDs
83
85
(2.10.1 )
86
+ * Contributed fix for #128 : Timestamp keys from `ZonedDateTime`
87
+ (2.11.0 )
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ Modules:
10
10
11
11
2.11.0 (not yet released)
12
12
13
- -
13
+ #128 : Timestamp keys from `ZonedDateTime`
14
+ (reported by Michał Ż, fixed by Vetle L-R)
14
15
15
16
2.10.1 (not yet released)
16
17
You can’t perform that action at this time.
0 commit comments