@Test public void getTitleReturnsSpecifiedTitle() { FormSection testSection = new FormSection(null, this.propertyName, null); Assert.assertNull(testSection.getTitle()); testSection = new FormSection("", this.propertyName, null); Assert.assertEquals("", testSection.getTitle()); testSection = new FormSection(this.title, this.propertyName, null); Assert.assertEquals(this.title, testSection.getTitle()); }
@Override public String getTitle() { return this.title; }
FormSection extends FormGroup { @Override public String getTitle() { return this.title; } }
FormSection extends FormGroup { @Override public String getTitle() { return this.title; } FormSection(String title, String propertyName, Collection<String> categories); }
FormSection extends FormGroup { @Override public String getTitle() { return this.title; } FormSection(String title, String propertyName, Collection<String> categories); String getPropertyName(); @Override String getTitle(); @Override String display(DisplayMode mode, String[] fieldNames); FormGroup getCustomElements(); void setCustomElements(FormGroup customElements); List<String> getCategories(); }
FormSection extends FormGroup { @Override public String getTitle() { return this.title; } FormSection(String title, String propertyName, Collection<String> categories); String getPropertyName(); @Override String getTitle(); @Override String display(DisplayMode mode, String[] fieldNames); FormGroup getCustomElements(); void setCustomElements(FormGroup customElements); List<String> getCategories();  }