@Test public void splitToSectionsDetailed_university_section() { assertEquals(OrgSectionType.UNIVERSITY, sectionsSplitter.splitToSectionsDetailed("university of california").get(0).getType()); assertEquals(OrgSectionType.UNIVERSITY, sectionsSplitter.splitToSectionsDetailed("universita di roma").get(0).getType()); assertEquals(OrgSectionType.UNIVERSITY, sectionsSplitter.splitToSectionsDetailed("universidade do porto").get(0).getType()); assertEquals(OrgSectionType.UNIVERSITY, sectionsSplitter.splitToSectionsDetailed("universite libre de bruxelles").get(0).getType()); assertEquals(OrgSectionType.UNIVERSITY, sectionsSplitter.splitToSectionsDetailed("uniwersytet warszawski").get(0).getType()); assertEquals(OrgSectionType.UNIVERSITY, sectionsSplitter.splitToSectionsDetailed("technische universiteit eindhoven").get(0).getType()); }
public List<OrganizationSection> splitToSectionsDetailed(String organizationName) { List<String> sections = splitToSections(organizationName); List<OrganizationSection> sectionsDetailed = Lists.newArrayList(); for (String section : sections) { OrganizationSection sectionDetailed = buildSectionDetailed(section); sectionsDetailed.add(sectionDetailed); } return sectionsDetailed; }
OrganizationSectionsSplitter implements Serializable { public List<OrganizationSection> splitToSectionsDetailed(String organizationName) { List<String> sections = splitToSections(organizationName); List<OrganizationSection> sectionsDetailed = Lists.newArrayList(); for (String section : sections) { OrganizationSection sectionDetailed = buildSectionDetailed(section); sectionsDetailed.add(sectionDetailed); } return sectionsDetailed; } }
OrganizationSectionsSplitter implements Serializable { public List<OrganizationSection> splitToSectionsDetailed(String organizationName) { List<String> sections = splitToSections(organizationName); List<OrganizationSection> sectionsDetailed = Lists.newArrayList(); for (String section : sections) { OrganizationSection sectionDetailed = buildSectionDetailed(section); sectionsDetailed.add(sectionDetailed); } return sectionsDetailed; }  }
OrganizationSectionsSplitter implements Serializable { public List<OrganizationSection> splitToSectionsDetailed(String organizationName) { List<String> sections = splitToSections(organizationName); List<OrganizationSection> sectionsDetailed = Lists.newArrayList(); for (String section : sections) { OrganizationSection sectionDetailed = buildSectionDetailed(section); sectionsDetailed.add(sectionDetailed); } return sectionsDetailed; }  List<String> splitToSections(String organizationName); List<OrganizationSection> splitToSectionsDetailed(String organizationName); }
OrganizationSectionsSplitter implements Serializable { public List<OrganizationSection> splitToSectionsDetailed(String organizationName) { List<String> sections = splitToSections(organizationName); List<OrganizationSection> sectionsDetailed = Lists.newArrayList(); for (String section : sections) { OrganizationSection sectionDetailed = buildSectionDetailed(section); sectionsDetailed.add(sectionDetailed); } return sectionsDetailed; }  List<String> splitToSections(String organizationName); List<OrganizationSection> splitToSectionsDetailed(String organizationName);  }