File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
datetime/src/test/java/com/fasterxml/jackson/datatype/jsr310/ser Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -32,22 +32,16 @@ public class YearSerTest extends ModuleTestBase
32
32
private final ObjectMapper MAPPER = newMapper ();
33
33
34
34
@ Test
35
- public void testSerialization01 () throws Exception
36
- {
37
- Year year = Year .of (1986 );
38
- String value = MAPPER .writeValueAsString (year );
39
- assertEquals ("The value is not correct." , "1986" , value );
40
- }
41
-
42
- @ Test
43
- public void testSerialization02 () throws Exception
35
+ public void testDefaultSerialization () throws Exception
44
36
{
37
+ assertEquals ("The value is not correct." , "1986" ,
38
+ MAPPER .writeValueAsString (Year .of (1986 )));
45
39
assertEquals ("The value is not correct." , "2013" ,
46
40
MAPPER .writeValueAsString (Year .of (2013 )));
47
41
}
48
42
49
43
@ Test
50
- public void testSerializationWithTypeInfo01 () throws Exception
44
+ public void testSerializationWithTypeInfo () throws Exception
51
45
{
52
46
ObjectMapper mapper = newMapper ()
53
47
.addMixIn (Temporal .class , MockObjectConfiguration .class );
You can’t perform that action at this time.
0 commit comments