@Test public void testSetDateFormat_NoSpecialDateFormatSet() { MultiformatDateField multiformatDateField = new MultiformatDateField(); String dateFormat = multiformatDateField.getDateFormat(); List<String> alternativeFormat = multiformatDateField.getAlternativeFormat(); assertThat(dateFormat, is(nullValue())); assertThat(alternativeFormat, is(empty())); }
public List<String> getAlternativeFormat() { return Arrays.asList(getState().getAlternativeFormats()); }
MultiformatDateField extends DateField { public List<String> getAlternativeFormat() { return Arrays.asList(getState().getAlternativeFormats()); } }
MultiformatDateField extends DateField { public List<String> getAlternativeFormat() { return Arrays.asList(getState().getAlternativeFormats()); } MultiformatDateField();  MultiformatDateField(String caption, LocalDate value);  MultiformatDateField(String caption);  MultiformatDateField(
            ValueChangeListener<LocalDate> valueChangeListener);  MultiformatDateField(String caption,
            ValueChangeListener<LocalDate> valueChangeListener);  MultiformatDateField(String caption, LocalDate value,
            ValueChangeListener<LocalDate> valueChangeListener); }
MultiformatDateField extends DateField { public List<String> getAlternativeFormat() { return Arrays.asList(getState().getAlternativeFormats()); } MultiformatDateField();  MultiformatDateField(String caption, LocalDate value);  MultiformatDateField(String caption);  MultiformatDateField(
            ValueChangeListener<LocalDate> valueChangeListener);  MultiformatDateField(String caption,
            ValueChangeListener<LocalDate> valueChangeListener);  MultiformatDateField(String caption, LocalDate value,
            ValueChangeListener<LocalDate> valueChangeListener); @Override void setDateFormat(String dateFormat); void setAlternativeFormats(List<String> formats); void addAlternativeFormat(String formatString); List<String> getAlternativeFormat(); }
MultiformatDateField extends DateField { public List<String> getAlternativeFormat() { return Arrays.asList(getState().getAlternativeFormats()); } MultiformatDateField();  MultiformatDateField(String caption, LocalDate value);  MultiformatDateField(String caption);  MultiformatDateField(
            ValueChangeListener<LocalDate> valueChangeListener);  MultiformatDateField(String caption,
            ValueChangeListener<LocalDate> valueChangeListener);  MultiformatDateField(String caption, LocalDate value,
            ValueChangeListener<LocalDate> valueChangeListener); @Override void setDateFormat(String dateFormat); void setAlternativeFormats(List<String> formats); void addAlternativeFormat(String formatString); List<String> getAlternativeFormat();  }