rename getByIdInVocabulary
authorAndreas Müller <a.mueller@bgbm.org>
Wed, 9 Jul 2014 16:33:39 +0000 (16:33 +0000)
committerAndreas Müller <a.mueller@bgbm.org>
Wed, 9 Jul 2014 16:33:39 +0000 (16:33 +0000)
cdmlib-ext/src/test/java/eu/etaxonomy/cdm/ext/geo/EditGeoServiceTest.java

index fb305ccc4095d4321dd16e281c5aa464440c94ef..ea5a0b32a278e6fac8680b384f1316876686a36b 100644 (file)
@@ -106,14 +106,14 @@ public class EditGeoServiceTest extends CdmTransactionalIntegrationTest {
     @Test\r
     public void testGetWebServiceUrlCountry() throws MalformedURLException, IOException {\r
         Set<Distribution> distributions = new HashSet<Distribution>();\r
-        Country germany = termService.getDefinedTermByIdInVocabulary("DEU", Country.uuidCountryVocabulary, Country.class);\r
+        Country germany = termService.findByIdInVocabulary("DEU", Country.uuidCountryVocabulary, Country.class);\r
 //        germany = (Country)termService.find(665);\r
 //        germany = (Country)termService.find(UUID.fromString("cbe7ce69-2952-4309-85dd-0d7d4a4830a1"));\r
 \r
 //        germany = Country.GERMANY();\r
 \r
         distributions.add(Distribution.NewInstance(germany, PresenceTerm.PRESENT()));\r
-        distributions.add(Distribution.NewInstance(termService.getDefinedTermByIdInVocabulary("DE", Country.uuidCountryVocabulary, Country.class), PresenceTerm.INTRODUCED()));\r
+        distributions.add(Distribution.NewInstance(termService.findByIdInVocabulary("DE", Country.uuidCountryVocabulary, Country.class), PresenceTerm.INTRODUCED()));\r
         Map<PresenceAbsenceTermBase<?>, Color> presenceAbsenceColorMap = new HashMap<PresenceAbsenceTermBase<?>, Color>();\r
         presenceAbsenceColorMap.put(PresenceTerm.PRESENT(), Color.BLUE);\r
         presenceAbsenceColorMap.put(PresenceTerm.INTRODUCED(), Color.BLACK);\r