@Test public void getTitleReturnsSpecifiedTitle() { FormSubsection testSubsection = new FormSubsection(null); Assert.assertNull(testSubsection.getTitle()); testSubsection = new FormSubsection(""); Assert.assertEquals("", testSubsection.getTitle()); testSubsection = new FormSubsection(this.title); Assert.assertEquals(this.title, testSubsection.getTitle()); }
@Override public String getTitle() { return this.title; }
FormSubsection extends FormGroup { @Override public String getTitle() { return this.title; } }
FormSubsection extends FormGroup { @Override public String getTitle() { return this.title; } FormSubsection(String title);   FormSubsection(String title, String type); }
FormSubsection extends FormGroup { @Override public String getTitle() { return this.title; } FormSubsection(String title);   FormSubsection(String title, String type); @Override String getTitle(); @Override String display(DisplayMode mode, String[] fieldNames); }
FormSubsection extends FormGroup { @Override public String getTitle() { return this.title; } FormSubsection(String title);   FormSubsection(String title, String type); @Override String getTitle(); @Override String display(DisplayMode mode, String[] fieldNames);  }