From 2f0c9213c5975cdf40392cfc2e4251f35c59d26e Mon Sep 17 00:00:00 2001 From: Viet Nguyen Date: Tue, 15 Oct 2024 01:40:40 +1100 Subject: [PATCH] Remove outdated orgainisation vocabs test --- .../esindexer/service/VocabServiceTest.java | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/indexer/src/test/java/au/org/aodn/esindexer/service/VocabServiceTest.java b/indexer/src/test/java/au/org/aodn/esindexer/service/VocabServiceTest.java index 000aa443..e06839a8 100644 --- a/indexer/src/test/java/au/org/aodn/esindexer/service/VocabServiceTest.java +++ b/indexer/src/test/java/au/org/aodn/esindexer/service/VocabServiceTest.java @@ -98,30 +98,6 @@ void testExtractPlatformVocabLabelsFromThemes() throws IOException { assertEquals(5, platformVocabs.size()); } - @Test - void testExtractPOrganisationVocabLabelsFromThemes() throws IOException { - // Prepare themes - List 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 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