PortableParameterDefinition { public abstract String getClassName(); 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();  }
@Test public void testClassNames() { PortableBooleanParameterDefinition p1 = new PortableBooleanParameterDefinition(); assertEquals( "java.lang.Boolean", p1.getClassName() ); PortableEnumParameterDefinition p2 = new PortableEnumParameterDefinition(); p2.setClassName( "com.tests.example.Smurf" ); assertEquals( "com.tests.example.Smurf", p2.getClassName() ); PortableFloatParameterDefinition p3 = new PortableFloatParameterDefinition(); assertEquals( "java.lang.Float", p3.getClassName() ); PortableIntegerParameterDefinition p4 = new PortableIntegerParameterDefinition(); assertEquals( "java.lang.Integer", p4.getClassName() ); PortableObjectParameterDefinition p5 = new PortableObjectParameterDefinition(); p5.setClassName( "com.tests.example.Smurf" ); assertEquals( "com.tests.example.Smurf", p5.getClassName() ); PortableStringParameterDefinition p6 = new PortableStringParameterDefinition(); assertEquals( "java.lang.String", p6.getClassName() ); }