Skip to content

Commit 1c5287c

Browse files
committed
...
1 parent 0dc8b9b commit 1c5287c

File tree

1 file changed

+4
-10
lines changed
  • datetime/src/test/java/com/fasterxml/jackson/datatype/jsr310/ser

1 file changed

+4
-10
lines changed

datetime/src/test/java/com/fasterxml/jackson/datatype/jsr310/ser/YearSerTest.java

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,16 @@ public class YearSerTest extends ModuleTestBase
3232
private final ObjectMapper MAPPER = newMapper();
3333

3434
@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
4436
{
37+
assertEquals("The value is not correct.", "1986",
38+
MAPPER.writeValueAsString(Year.of(1986)));
4539
assertEquals("The value is not correct.", "2013",
4640
MAPPER.writeValueAsString(Year.of(2013)));
4741
}
4842

4943
@Test
50-
public void testSerializationWithTypeInfo01() throws Exception
44+
public void testSerializationWithTypeInfo() throws Exception
5145
{
5246
ObjectMapper mapper = newMapper()
5347
.addMixIn(Temporal.class, MockObjectConfiguration.class);

0 commit comments

Comments
 (0)