use of org.eclipse.scout.rt.client.ui.form.fields.groupbox.AbstractGroupBox in project scout.rt by eclipse.
the class MoveFormFieldTest method testMoveToEmptyBox.
@Test
public void testMoveToEmptyBox() {
P_GroupBoxWithOneField source = new P_GroupBoxWithOneField();
P_InnerField fieldToMove = source.getFieldByClass(P_InnerField.class);
ICompositeField target = new AbstractGroupBox() {
};
// hidden because it is empty
assertFalse(target.isVisible());
source.moveFieldTo(fieldToMove, target);
// visible now because the execCalculateVisible() is true now
assertTrue(target.isVisible());
}
Aggregations