@Test public void checkElementsAreAdded() { Assert.assertFalse(this.testGroup.addElement(null)); FormField testField = mock(FormField.class); Assert.assertTrue(this.testGroup.addElement(testField)); Assert.assertTrue(this.testGroup.elements.contains(testField)); }
protected boolean addElement(FormElement e) { return e != null && this.elements.add(e); }
FormGroup extends AbstractFormElement { protected boolean addElement(FormElement e) { return e != null && this.elements.add(e); } }
FormGroup extends AbstractFormElement { protected boolean addElement(FormElement e) { return e != null && this.elements.add(e); } FormGroup(String title); }
FormGroup extends AbstractFormElement { protected boolean addElement(FormElement e) { return e != null && this.elements.add(e); } FormGroup(String title); @Override String display(DisplayMode mode, String[] fieldNames); }
FormGroup extends AbstractFormElement { protected boolean addElement(FormElement e) { return e != null && this.elements.add(e); } FormGroup(String title); @Override String display(DisplayMode mode, String[] fieldNames);  }