@@ -310,7 +310,7 @@ public void getDayContentDescription_notToday() {
310310 /* isStartOfRange= */ false ,
311311 /* isEndOfRange= */ false );
312312
313- assertThat (contentDescription , is ("Mon, Nov 30, 2020" ));
313+ assertThat (contentDescription , is ("Monday, November 30, 2020" ));
314314 }
315315
316316 @ Test
@@ -324,7 +324,7 @@ public void getDayContentDescription_notToday_startOfRange() {
324324 /* isStartOfRange= */ true ,
325325 /* isEndOfRange= */ false );
326326
327- assertThat (contentDescription , is ("Start date Mon, Nov 30, 2020" ));
327+ assertThat (contentDescription , is ("Start date Monday, November 30, 2020" ));
328328 }
329329
330330 @ Test
@@ -338,7 +338,7 @@ public void getDayContentDescription_notToday_endOfRange() {
338338 /* isStartOfRange= */ false ,
339339 /* isEndOfRange= */ true );
340340
341- assertThat (contentDescription , is ("End date Mon, Nov 30, 2020" ));
341+ assertThat (contentDescription , is ("End date Monday, November 30, 2020" ));
342342 }
343343
344344 @ Test
@@ -352,7 +352,7 @@ public void getDayContentDescription_notToday_startAndEndOfRange() {
352352 /* isStartOfRange= */ true ,
353353 /* isEndOfRange= */ true );
354354
355- assertThat (contentDescription , is ("Start date Mon, Nov 30, 2020" ));
355+ assertThat (contentDescription , is ("Start date Monday, November 30, 2020" ));
356356 }
357357
358358 @ Test
@@ -366,7 +366,7 @@ public void getDayContentDescription_today() {
366366 /* isStartOfRange= */ false ,
367367 /* isEndOfRange= */ false );
368368
369- assertThat (contentDescription , is ("Today Mon, Nov 30, 2020" ));
369+ assertThat (contentDescription , is ("Today Monday, November 30, 2020" ));
370370 }
371371
372372 @ Test
@@ -380,7 +380,7 @@ public void getDayContentDescription_today_startOfRange() {
380380 /* isStartOfRange= */ true ,
381381 /* isEndOfRange= */ false );
382382
383- assertThat (contentDescription , is ("Start date Today Mon, Nov 30, 2020" ));
383+ assertThat (contentDescription , is ("Start date Today Monday, November 30, 2020" ));
384384 }
385385
386386 @ Test
@@ -394,7 +394,7 @@ public void getDayContentDescription_today_endOfRange() {
394394 /* isStartOfRange= */ false ,
395395 /* isEndOfRange= */ true );
396396
397- assertThat (contentDescription , is ("End date Today Mon, Nov 30, 2020" ));
397+ assertThat (contentDescription , is ("End date Today Monday, November 30, 2020" ));
398398 }
399399
400400 @ Test
@@ -408,7 +408,21 @@ public void getDayContentDescription_today_startAndEndOfRange() {
408408 /* isStartOfRange= */ true ,
409409 /* isEndOfRange= */ true );
410410
411- assertThat (contentDescription , is ("Start date Today Mon, Nov 30, 2020" ));
411+ assertThat (contentDescription , is ("Start date Today Monday, November 30, 2020" ));
412+ }
413+
414+ @ Test
415+ public void getLocalizedDayContentDescription_german () {
416+ startDate = setupLocalizedCalendar (Locale .GERMAN , 2020 , 10 , 30 );
417+ String contentDescription =
418+ DateStrings .getDayContentDescription (
419+ ApplicationProvider .getApplicationContext (),
420+ startDate .getTimeInMillis (),
421+ /* isToday= */ false ,
422+ /* isStartOfRange= */ false ,
423+ /* isEndOfRange= */ false );
424+
425+ assertThat (contentDescription , is ("Montag, 30. November 2020" ));
412426 }
413427
414428 @ Test
0 commit comments