Property { @Override public String toString() { return "Property [propertyName=" + name + ", propertyRenderer=" + renderer + ", propertyGroup=" + group + ", propertySubGroup=" + subGroup + ", propertyDataType=" + dataType + ", propertyType=" + type + "]"; } private  Property(Builder builder); String getPropertyName(); String getPropertyRenderer(); String getPropertyGroup(); String getPropertySubGroupID(); String getPropertySubGroup(); String getPropertyDataType(); String getPropertyType(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void itShouldAllowToAddOptionalPropertyGroupName(){ String expectedProperty = "Property [propertyName=delimiter, propertyRenderer=TEXT, propertyGroup=TextProperties, propertySubGroup=GENERAL, propertyDataType=String, propertyType=USER, propertyListeners=[]]"; Property property=new Property.Builder("String","delimiter","TEXT").group("TextProperties").build(); assertEquals(expectedProperty,property.toString()); }
@Test public void itShouldAllowToAddOptionalPropertySubGroupName(){ String expectedProperty = "Property [propertyName=delimiter, propertyRenderer=TEXT, propertyGroup=TextProperties, propertySubGroup=TextSubgroup, propertyDataType=String, propertyType=USER, propertyListeners=[]]"; Property property=new Property.Builder("String","delimiter","TEXT").group("TextProperties").subGroup("TextSubgroup").build(); assertEquals(expectedProperty,property.toString()); }
@Test public void itShouldAllowToAddOptionalPropertyType(){ String expectedProperty = "Property [propertyName=delimiter, propertyRenderer=TEXT, propertyGroup=TextProperties, propertySubGroup=TextSubgroup, propertyDataType=String, propertyType=System, propertyListeners=[]]"; Property property=new Property.Builder("String","delimiter","TEXT") .group("TextProperties") .subGroup("TextSubgroup") .type("System").build(); assertEquals(expectedProperty,property.toString()); }