Skip to content

Commit

Permalink
Remove outdated orgainisation vocabs test
Browse files Browse the repository at this point in the history
  • Loading branch information
vietnguyengit committed Oct 14, 2024
1 parent b9806ed commit 2f0c921
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,30 +98,6 @@ void testExtractPlatformVocabLabelsFromThemes() throws IOException {
assertEquals(5, platformVocabs.size());
}

@Test
void testExtractPOrganisationVocabLabelsFromThemes() throws IOException {
// Prepare themes
List<ThemesModel> themes = List.of(
new ThemesModel(Arrays.asList(
new ConceptModel("Hornsby Shire Council", "http://vocab.aodn.org.au/def/organisation/entity/408"),
new ConceptModel("Department of Environment and Natural Resources (DENR), Northern Territory Government", "http://vocab.aodn.org.au/def/organisation/entity/487"),
new ConceptModel("Parks Australia, Department of Agriculture, Water and the Environment (DAWE), Australian Government", "http://vocab.aodn.org.au/def/organisation/entity/637"),
new ConceptModel("Bureau of Meteorology (BOM), Department of Environment (DoE), Australian Government", "http://vocab.aodn.org.au/def/organisation/entity/11")
), "theme", null, "AODN Organisation Vocabulary")
);

// Perform the test
List<String> organisationVocabs = vocabService.extractVocabLabelsFromThemes(themes, AppConstants.AODN_ORGANISATION_VOCABS);

// Assertions
assertNotNull(organisationVocabs);
assertTrue(organisationVocabs.stream().anyMatch(vocab -> vocab.equalsIgnoreCase("New South Wales Councils")));
assertTrue(organisationVocabs.stream().anyMatch(vocab -> vocab.equalsIgnoreCase("Northern Territory Government")));
assertTrue(organisationVocabs.stream().anyMatch(vocab -> vocab.equalsIgnoreCase("Department of Agriculture, Water and the Environment (DAWE), Australian Government")));
assertTrue(organisationVocabs.stream().anyMatch(vocab -> vocab.equalsIgnoreCase("Department of the Environment (DoE), Australian Government")));
assertEquals(4, organisationVocabs.size());
}

@Test
void testProcessParameterVocabs() throws IOException, JSONException {
// read from ARDC
Expand Down

0 comments on commit 2f0c921

Please sign in to comment.