private FieldBase initializeFieldBase() { FieldBase fieldBase = new FieldBase(); fieldBase = (FieldBase) initializeComponentBase(fieldBase); fieldBase.setShortLabel("Label"); return fieldBase; }
@Test /** test {@link ComponentUtils#copyUsingCloning} using a FieldBase object */ public void testCopyUsingCloningWithFieldBaseSucceeds() { FieldBase fieldBaseOriginal = initializeFieldBase(); FieldBase fieldBaseCopy = copy(fieldBaseOriginal); assertTrue(ComponentCopyPropertiesMatch(fieldBaseOriginal, fieldBaseCopy)); assertTrue(fieldBaseOriginal.getShortLabel().equals(fieldBaseCopy.getShortLabel())); }