Skip to content

Commit 18ad65d

Browse files
author
Igor Kugaudo
authored
Fixed names of test methods
1 parent 1fe6d3a commit 18ad65d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎core-java/src/test/java/com/baeldung/regexp/datepattern/GregorianDateMatcherUnitTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void whenMonthIsFeb_thenMonthHasNo30Days() {
6969
}
7070

7171
@Test
72-
public void whenMonthIsJanMarMayJulAugOctDec_thenMonthHas31Days() {
72+
public void whenMonthIsLong_thenMonthHas31Days() {
7373
Assert.assertTrue(matcher.matches("2018-01-31"));
7474
Assert.assertTrue(matcher.matches("2018-03-31"));
7575
Assert.assertTrue(matcher.matches("2018-05-31"));
@@ -80,7 +80,7 @@ public void whenMonthIsJanMarMayJulAugOctDec_thenMonthHas31Days() {
8080
}
8181

8282
@Test
83-
public void whenMonthIsFebAprJunSepNov_thenMonthHasNo31Days() {
83+
public void whenMonthIsShort_thenMonthHasNo31Days() {
8484
Assert.assertFalse(matcher.matches("2018-02-31"));
8585
Assert.assertFalse(matcher.matches("2018-04-31"));
8686
Assert.assertFalse(matcher.matches("2018-06-31"));

0 commit comments

Comments
 (0)