@Test public void testGetDisplayString() { Source sut = new Source(EntityType.GROUP, "UID", "Display", parent, filter); String s = sut.getDisplayString(); assertTrue(s.contains("Display")); sut.setUnreadCount(42); s = sut.getDisplayString(); assertTrue(s.contains("Display")); assertTrue(s.contains("42")); }
public String getDisplayString() { return unreadCount > 0 ? displayName + " (" + unreadCount + ")" : displayName; }
Source { public String getDisplayString() { return unreadCount > 0 ? displayName + " (" + unreadCount + ")" : displayName; } }
Source { public String getDisplayString() { return unreadCount > 0 ? displayName + " (" + unreadCount + ")" : displayName; } Source(final EntityType inEntityType, final String inUniqueId, final String inDisplayName,
            final Source inParent, final Filter inFilter); }
Source { public String getDisplayString() { return unreadCount > 0 ? displayName + " (" + unreadCount + ")" : displayName; } Source(final EntityType inEntityType, final String inUniqueId, final String inDisplayName,
            final Source inParent, final Filter inFilter); String getDisplayString(); void incrementUnreadCount(); void decrementUnreadCount(); void incrementTotalCount(); void decrementTotalCount(); String getUniqueId(); EntityType getEntityType(); String getDisplayName(); int getTotalCount(); void setTotalCount(final int inCount); int getUnreadCount(); void setUnreadCount(final int inUnreadCount); Source getParent(); Label getWidget(); void setWidget(final Label inWidget); void setDisplayName(final String inDisplayName); Filter getFilter(); void setFilter(final Filter inFilter); boolean isCategorySource(); }
Source { public String getDisplayString() { return unreadCount > 0 ? displayName + " (" + unreadCount + ")" : displayName; } Source(final EntityType inEntityType, final String inUniqueId, final String inDisplayName,
            final Source inParent, final Filter inFilter); String getDisplayString(); void incrementUnreadCount(); void decrementUnreadCount(); void incrementTotalCount(); void decrementTotalCount(); String getUniqueId(); EntityType getEntityType(); String getDisplayName(); int getTotalCount(); void setTotalCount(final int inCount); int getUnreadCount(); void setUnreadCount(final int inUnreadCount); Source getParent(); Label getWidget(); void setWidget(final Label inWidget); void setDisplayName(final String inDisplayName); Filter getFilter(); void setFilter(final Filter inFilter); boolean isCategorySource();  }