@Test public void verifyToString() { Preference pref = new Preference( null, null, null ); Assert.assertNull( pref.toString()); pref = new Preference( "key", "value", null ); Assert.assertEquals( "key", pref.toString()); for( PreferenceKeyCategory cat : PreferenceKeyCategory.values()) { Assert.assertNotNull( cat.toString()); Assert.assertNotNull( cat.getDescription()); } }
@Override public String toString() { return this.name; }
Preference { @Override public String toString() { return this.name; } }
Preference { @Override public String toString() { return this.name; } Preference( String name, String value, PreferenceKeyCategory category ); }
Preference { @Override public String toString() { return this.name; } Preference( String name, String value, PreferenceKeyCategory category ); String getName(); String getValue(); PreferenceKeyCategory getCategory(); @Override String toString(); }
Preference { @Override public String toString() { return this.name; } Preference( String name, String value, PreferenceKeyCategory category ); String getName(); String getValue(); PreferenceKeyCategory getCategory(); @Override String toString();  }