File tree Expand file tree Collapse file tree
src/test/java/se/gustavkarlsson/rocketchat/jira_trigger/configuration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,19 +41,7 @@ public void createWithInvalidDateFormatConfigMapThrowsValidationException() thro
4141 }
4242
4343 @ Test
44- public void createWithSwedishDateLocaleConfigMapProducesSwedishDate () throws Exception {
45- when (mockConfigMap .getString (DATE_LOCALE_KEY )).thenReturn ("sv-SE" );
46- when (mockConfigMap .getString (DATE_PATTERN_KEY )).thenReturn ("E" );
47- when (mockConfigMap .getString (DEFAULT_COLOR_KEY )).thenReturn ("#123123" );
48- MessageConfiguration messageConfig = new MessageConfiguration (mockConfigMap );
49-
50- DateTimeFormatter dateFormatter = messageConfig .getDateFormatter ();
51-
52- assertThat (dateFormatter .print (EPOCH )).isEqualTo ("to" );
53- }
54-
55- @ Test
56- public void createWithUsEnglishDateLocaleConfigMapProducesSwedishDate () throws Exception {
44+ public void createWithUsEnglishDateLocaleConfigMapProducesEnglishDate () throws Exception {
5745 when (mockConfigMap .getString (DATE_LOCALE_KEY )).thenReturn ("en-US" );
5846 when (mockConfigMap .getString (DATE_PATTERN_KEY )).thenReturn ("E" );
5947 when (mockConfigMap .getString (DEFAULT_COLOR_KEY )).thenReturn ("#123123" );
You can’t perform that action at this time.
0 commit comments