@Test public void checkGetBooleanFields() { List<String> result = ((AbstractComplexController<String>) this.component).getBooleanFields(); Assert.assertEquals(8, result.size()); Assert.assertThat(result, Matchers.hasItem(MULTIPLE_GESTATION)); Assert.assertThat(result, Matchers.hasItem(IVF)); Assert.assertThat(result, Matchers.hasItem(ICSI)); Assert.assertThat(result, Matchers.hasItem(ASSISTED_REPRODUCTION_IUI)); Assert.assertThat(result, Matchers.hasItem(ASSISTED_REPRODUCTION_FERTILITY_MEDS)); Assert.assertThat(result, Matchers.hasItem(ASSISTED_REPRODUCTION_SURROGACY)); Assert.assertThat(result, Matchers.hasItem(ASSISTED_REPRODUCTION_DONOR_EGG)); Assert.assertThat(result, Matchers.hasItem(ASSISTED_REPRODUCTION_DONOR_SPERM)); }
@Override protected List<String> getBooleanFields() { return this.booleans; }
PrenatalPerinatalHistoryController extends AbstractComplexController<String> { @Override protected List<String> getBooleanFields() { return this.booleans; } }
PrenatalPerinatalHistoryController extends AbstractComplexController<String> { @Override protected List<String> getBooleanFields() { return this.booleans; }  }
PrenatalPerinatalHistoryController extends AbstractComplexController<String> { @Override protected List<String> getBooleanFields() { return this.booleans; }  @Override String getName(); }
PrenatalPerinatalHistoryController extends AbstractComplexController<String> { @Override protected List<String> getBooleanFields() { return this.booleans; }  @Override String getName();  }