@Test public void testGetFormatShouldReturnLocaleSpecificDefaultDateFormat_DorGermany() { Locale.setDefault(Locale.GERMANY); DateFormat format = DateFormat.getDateInstance(); Date time = new Date(); String expected = format.format(time); DatePM pm = new DatePM(); DateFormat act = pm.getFormat(); assertThat(act.format(time), is(expected)); }
public DateFormat getFormat() { return format; }
DatePM extends TextPM implements IDatePM { public DateFormat getFormat() { return format; } }
DatePM extends TextPM implements IDatePM { public DateFormat getFormat() { return format; } DatePM(); }
DatePM extends TextPM implements IDatePM { public DateFormat getFormat() { return format; } DatePM(); static synchronized DateFormatProvider getDefaultDateFormatProvider(); static synchronized void setDefaultDateFormatProvider(DateFormatProvider provider); DateFormat getFormat(); void setFormat(DateFormat newFormat); Date getDate(); void setDate(Date date); void setDefaultDate(Date date); @Override Comparable<?> getComparable(); }
DatePM extends TextPM implements IDatePM { public DateFormat getFormat() { return format; } DatePM(); static synchronized DateFormatProvider getDefaultDateFormatProvider(); static synchronized void setDefaultDateFormatProvider(DateFormatProvider provider); DateFormat getFormat(); void setFormat(DateFormat newFormat); Date getDate(); void setDate(Date date); void setDefaultDate(Date date); @Override Comparable<?> getComparable();  }