@Test public void testAttributeIdentifiers() { String testCategory = "testCategory"; String testID = "testId"; String testType = "testType"; String newTestType = "testNewType"; attrIds = new AttributeIdentifiers(testCategory, testType, testID); assertEquals(testCategory, attrIds.category); assertEquals(testID, attrIds.id); assertEquals(testType, attrIds.getType()); attrIds.setType(newTestType); assertEquals(newTestType, attrIds.getType()); }
public AttributeIdentifiers(String category, String type, String id) { this.category = category; this.setType(type); this.id = id; }
AttributeIdentifiers { public AttributeIdentifiers(String category, String type, String id) { this.category = category; this.setType(type); this.id = id; } }
AttributeIdentifiers { public AttributeIdentifiers(String category, String type, String id) { this.category = category; this.setType(type); this.id = id; } AttributeIdentifiers(String category, String type, String id); }
AttributeIdentifiers { public AttributeIdentifiers(String category, String type, String id) { this.category = category; this.setType(type); this.id = id; } AttributeIdentifiers(String category, String type, String id); String getType(); void setType(String type); }
AttributeIdentifiers { public AttributeIdentifiers(String category, String type, String id) { this.category = category; this.setType(type); this.id = id; } AttributeIdentifiers(String category, String type, String id); String getType(); void setType(String type); final String category; final String id; }