SeriesGroup extends DefaultTagable implements Comparable<SeriesGroup> { @Override public String toString() { return getDisplayName(); } SeriesGroup(); private  SeriesGroup(Type type);  SeriesGroup(String name);  SeriesGroup(LocalDateTime date); boolean isNeedUpateFromGlobaTags(); void setNeedUpateFromGlobaTags(boolean needUpateFromGlobaTags); void updateDicomTags(); Type getType(); String getUID(); LocalDateTime getDate(); void setDate(LocalDateTime date); String getDisplayName(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); @Override int compareTo(SeriesGroup that); void addLayerChangeListener(SeriesDataListener listener); void removeLayerChangeListener(SeriesDataListener listener); void fireDataChanged(); static final SeriesGroup DATE_SERIE; static final String DEFAULT_SERIE_NAME; }
@Test public void testToString() { assertThat(s1.toString()).isEqualTo("Other"); assertThat(s2.toString()).isEqualTo(LocalUtil.getDateTimeFormatter().format(today)); assertThat(s3.toString()).isEqualTo("test serie 3"); }