Skip to content

Commit 8edd76c

Browse files
committed
"Vendredi" is Friday in french, not Wednesday
1 parent 3a3a0ba commit 8edd76c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core-java-modules/core-java-datetime-string/src/test/java/com/baeldung/simpledateformat/SimpleDateFormatUnitTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public void givenStringDate_whenParsed_thenCheckDateCorrect() throws Exception{
4141
@Test
4242
public void givenFranceLocale_whenFormatted_thenCheckFormatCorrect() throws Exception{
4343
SimpleDateFormat franceDateFormatter = new SimpleDateFormat("EEEEE dd-MMMMMMM-yyyy", Locale.FRANCE);
44-
Date myWednesday = new Date(1539341312904L);
45-
assertTrue(franceDateFormatter.format(myWednesday).startsWith("vendredi"));
44+
Date myFriday = new Date(1539341312904L);
45+
assertTrue(franceDateFormatter.format(myFriday).startsWith("vendredi"));
4646
}
4747

4848
@Test

0 commit comments

Comments
 (0)