Skip to content

Commit 8396d96

Browse files
author
eugenp
committed
jackson cleanup test names
1 parent 087ca5c commit 8396d96

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

jackson/src/test/java/org/baeldung/jackson/test/JacksonDateTest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
public class JacksonDateTest {
3030

3131
@Test
32-
public void whenSerializeDateWithJackson_thenSerializedToNumber() throws JsonProcessingException, ParseException {
32+
public void whenSerializingDateWithJackson_thenSerializedToNumber() throws JsonProcessingException, ParseException {
3333
final SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy hh:mm");
3434
df.setTimeZone(TimeZone.getTimeZone("UTC"));
3535

@@ -43,7 +43,7 @@ public void whenSerializeDateWithJackson_thenSerializedToNumber() throws JsonPro
4343
}
4444

4545
@Test
46-
public void whenSerializeDateToISO8601_thenSerializedToText() throws JsonProcessingException, ParseException {
46+
public void whenSerializingDateToISO8601_thenSerializedToText() throws JsonProcessingException, ParseException {
4747
final SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy hh:mm");
4848
df.setTimeZone(TimeZone.getTimeZone("UTC"));
4949

@@ -59,7 +59,7 @@ public void whenSerializeDateToISO8601_thenSerializedToText() throws JsonProcess
5959
}
6060

6161
@Test
62-
public void whenSetObjectMapperDateFormat_thenCorrect() throws JsonProcessingException, ParseException {
62+
public void whenSettingObjectMapperDateFormat_thenCorrect() throws JsonProcessingException, ParseException {
6363
final SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy hh:mm");
6464

6565
final String toParse = "20-12-2014 02:30";
@@ -74,7 +74,7 @@ public void whenSetObjectMapperDateFormat_thenCorrect() throws JsonProcessingExc
7474
}
7575

7676
@Test
77-
public void whenUseJsonFormatAnnotationToFormatDate_thenCorrect() throws JsonProcessingException, ParseException {
77+
public void whenUsingJsonFormatAnnotationToFormatDate_thenCorrect() throws JsonProcessingException, ParseException {
7878
final SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
7979
df.setTimeZone(TimeZone.getTimeZone("UTC"));
8080

@@ -88,7 +88,7 @@ public void whenUseJsonFormatAnnotationToFormatDate_thenCorrect() throws JsonPro
8888
}
8989

9090
@Test
91-
public void whenUseCustomDateSerializer_thenCorrect() throws JsonProcessingException, ParseException {
91+
public void whenUsingCustomDateSerializer_thenCorrect() throws JsonProcessingException, ParseException {
9292
final SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
9393

9494
final String toParse = "20-12-2014 02:30:00";
@@ -101,7 +101,7 @@ public void whenUseCustomDateSerializer_thenCorrect() throws JsonProcessingExcep
101101
}
102102

103103
@Test
104-
public void whenSerializeJodaTimeWithJackson_thenCorrect() throws JsonProcessingException {
104+
public void whenSerializingJodaTimeWithJackson_thenCorrect() throws JsonProcessingException {
105105
final DateTime date = new DateTime(2014, 12, 20, 2, 30);
106106
final EventWithJodaTime event = new EventWithJodaTime("party", date);
107107

@@ -111,7 +111,7 @@ public void whenSerializeJodaTimeWithJackson_thenCorrect() throws JsonProcessing
111111
}
112112

113113
@Test
114-
public void whenSerializeJava8DateWithCustomSerializer_thenCorrect() throws JsonProcessingException {
114+
public void whenSerializingJava8DateWithCustomSerializer_thenCorrect() throws JsonProcessingException {
115115
final LocalDateTime date = LocalDateTime.of(2014, 12, 20, 2, 30);
116116
final EventWithLocalDateTime event = new EventWithLocalDateTime("party", date);
117117

@@ -121,7 +121,7 @@ public void whenSerializeJava8DateWithCustomSerializer_thenCorrect() throws Json
121121
}
122122

123123
@Test
124-
public void whenDeserializeDateWithJackson_thenCorrect() throws JsonProcessingException, IOException {
124+
public void whenDeserializingDateWithJackson_thenCorrect() throws JsonProcessingException, IOException {
125125
final String json = "{\"name\":\"party\",\"eventDate\":\"20-12-2014 02:30:00\"}";
126126

127127
final SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
@@ -133,7 +133,7 @@ public void whenDeserializeDateWithJackson_thenCorrect() throws JsonProcessingEx
133133
}
134134

135135
@Test
136-
public void whenDeserializeDateUsingCustomDeserializer_thenCorrect() throws JsonProcessingException, IOException {
136+
public void whenDeserializingDateUsingCustomDeserializer_thenCorrect() throws JsonProcessingException, IOException {
137137
final String json = "{\"name\":\"party\",\"eventDate\":\"20-12-2014 02:30:00\"}";
138138

139139
final SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
@@ -144,7 +144,7 @@ public void whenDeserializeDateUsingCustomDeserializer_thenCorrect() throws Json
144144
}
145145

146146
@Test
147-
public void whenSerializeJava8Date_thenCorrect() throws JsonProcessingException {
147+
public void whenSerializingJava8Date_thenCorrect() throws JsonProcessingException {
148148
final LocalDateTime date = LocalDateTime.of(2014, 12, 20, 2, 30);
149149

150150
final ObjectMapper mapper = new ObjectMapper();
@@ -156,7 +156,7 @@ public void whenSerializeJava8Date_thenCorrect() throws JsonProcessingException
156156
}
157157

158158
@Test
159-
public void whenSerializeJodaTime_thenCorrect() throws JsonProcessingException {
159+
public void whenSerializingJodaTime_thenCorrect() throws JsonProcessingException {
160160
final DateTime date = new DateTime(2014, 12, 20, 2, 30, DateTimeZone.forID("Europe/London"));
161161

162162
final ObjectMapper mapper = new ObjectMapper();

0 commit comments

Comments
 (0)