@Test public void testProvide_2() { final DetailCategory parent = new DetailCategory(null, "ab", "", false, null, null); final DetailCategory childA = new DetailCategory(parent, "a", "", true, null, null); final DetailCategory childB = new DetailCategory(parent, "b", "", true, null, null); final DetailCategory standalone = new DetailCategory(null, "c", "", true, null, null); final List<DetailCategory> categories = Arrays.asList(parent, childA, childB, standalone); final AisProject project = new AisProject("", categories); Assert.assertEquals(categories, project.provide()); }
@Override public List<DetailCategory> provide() { return Collections.unmodifiableList(this.categories); }
AisProject implements IMultiObjectModel<AisProject, Interview>, IDetailCategoryProvider { @Override public List<DetailCategory> provide() { return Collections.unmodifiableList(this.categories); } }
AisProject implements IMultiObjectModel<AisProject, Interview>, IDetailCategoryProvider { @Override public List<DetailCategory> provide() { return Collections.unmodifiableList(this.categories); } AisProject(final String label, final List<DetailCategory> categories); }
AisProject implements IMultiObjectModel<AisProject, Interview>, IDetailCategoryProvider { @Override public List<DetailCategory> provide() { return Collections.unmodifiableList(this.categories); } AisProject(final String label, final List<DetailCategory> categories); String getLabel(); AisProject setLabel(final String value); List<Interview> getInterviews(); AisProject setInterviews(final List<Interview> value); AisProject setCategories(final List<DetailCategory> value); @Override String getGroupKey(final Object interview); @Override Map<String, List<Interview>> getSubModelObjects(); @Override List<DetailCategory> provide(); @Override List<DetailCategory> provideSelectables(); @Override AisProject clone(); @Override int hashCode(); @Override boolean equals(final Object otherObject); }
AisProject implements IMultiObjectModel<AisProject, Interview>, IDetailCategoryProvider { @Override public List<DetailCategory> provide() { return Collections.unmodifiableList(this.categories); } AisProject(final String label, final List<DetailCategory> categories); String getLabel(); AisProject setLabel(final String value); List<Interview> getInterviews(); AisProject setInterviews(final List<Interview> value); AisProject setCategories(final List<DetailCategory> value); @Override String getGroupKey(final Object interview); @Override Map<String, List<Interview>> getSubModelObjects(); @Override List<DetailCategory> provide(); @Override List<DetailCategory> provideSelectables(); @Override AisProject clone(); @Override int hashCode(); @Override boolean equals(final Object otherObject);  }