@Test public void testAsString() { PortableBooleanParameterDefinition p1 = new PortableBooleanParameterDefinition(); p1.setValue( Boolean.TRUE ); assertEquals( "Boolean.TRUE", p1.asString() ); PortableEnumParameterDefinition p2 = new PortableEnumParameterDefinition(); p2.setValue( "PUPA" ); p2.setClassName( "Smurf" ); assertEquals( "Smurf.PUPA", p2.asString() ); PortableFloatParameterDefinition p3 = new PortableFloatParameterDefinition(); p3.setValue( 1.23f ); assertEquals( "1.23f", p3.asString() ); PortableIntegerParameterDefinition p4 = new PortableIntegerParameterDefinition(); p4.setValue( 123 ); assertEquals( "123", p4.asString() ); PortableObjectParameterDefinition p5 = new PortableObjectParameterDefinition(); p5.setBinding( "$b" ); assertEquals( "$b", p5.asString() ); PortableStringParameterDefinition p6 = new PortableStringParameterDefinition(); p6.setValue( "hello" ); assertEquals( "\"hello\"", p6.asString() ); }
public abstract String asString();
PortableParameterDefinition { public abstract String asString(); }
PortableParameterDefinition { public abstract String asString(); PortableParameterDefinition();  PortableParameterDefinition( String name ); }
PortableParameterDefinition { public abstract String asString(); PortableParameterDefinition();  PortableParameterDefinition( String name ); String getName(); void setName( String name ); abstract String asString(); abstract String getClassName(); String getSimpleClassName(); @Override boolean equals(Object o); @Override int hashCode(); }
PortableParameterDefinition { public abstract String asString(); PortableParameterDefinition();  PortableParameterDefinition( String name ); String getName(); void setName( String name ); abstract String asString(); abstract String getClassName(); String getSimpleClassName(); @Override boolean equals(Object o); @Override int hashCode();  }