GeneratedPropertyBuilderImpl extends AbstractTypeMemberBuilder<GeneratedPropertyBuilder> implements GeneratedPropertyBuilder { public GeneratedPropertyBuilderImpl(final String name) { super(name); this.readOnly = true; } GeneratedPropertyBuilderImpl(final String name); @Override GeneratedPropertyBuilderImpl setValue(final String value); @Override GeneratedPropertyBuilderImpl setReadOnly(final boolean isReadOnly); @Override GeneratedProperty toInstance(final Type definingType); @Override String toString();  }
@Test public void generatedPropertyBuilderImplTest() { GeneratedPropertyBuilderImpl generatedPropertyBuilderImpl = new GeneratedPropertyBuilderImpl("myPropertyName"); generatedPropertyBuilderImpl.setValue("myValue"); generatedPropertyBuilderImpl.setReadOnly(false); generatedPropertyBuilderImpl.setStatic(true); generatedPropertyBuilderImpl.setComment(null); generatedPropertyBuilderImpl.setFinal(true); generatedPropertyBuilderImpl.setAccessModifier(AccessModifier.PUBLIC); generatedPropertyBuilderImpl.setReturnType(Types.BOOLEAN); assertEquals("GeneratedPropertyImpl [name=myPropertyName, annotations=[], comment=null, returnType=Type " + "(java.lang.Boolean), isFinal=true, isReadOnly=false, modifier=PUBLIC]", generatedPropertyBuilderImpl.toString()); GeneratedProperty instance = generatedPropertyBuilderImpl.toInstance(null); assertNotNull(instance); assertTrue(instance.isFinal()); assertTrue(instance.isStatic()); assertFalse(instance.isReadOnly()); assertEquals("myValue", instance.getValue()); assertEquals(null, instance.getComment()); assertEquals(AccessModifier.PUBLIC, instance.getAccessModifier()); assertEquals(Types.BOOLEAN, instance.getReturnType()); }