Project

General

Profile

« Previous | Next » 

Revision 37e7cf08

Added by Andreas Müller about 10 years ago

rename getByIdInVocabulary

View differences:

cdmlib-ext/src/test/java/eu/etaxonomy/cdm/ext/geo/EditGeoServiceTest.java
106 106
    @Test
107 107
    public void testGetWebServiceUrlCountry() throws MalformedURLException, IOException {
108 108
        Set<Distribution> distributions = new HashSet<Distribution>();
109
        Country germany = termService.getDefinedTermByIdInVocabulary("DEU", Country.uuidCountryVocabulary, Country.class);
109
        Country germany = termService.findByIdInVocabulary("DEU", Country.uuidCountryVocabulary, Country.class);
110 110
//        germany = (Country)termService.find(665);
111 111
//        germany = (Country)termService.find(UUID.fromString("cbe7ce69-2952-4309-85dd-0d7d4a4830a1"));
112 112

  
113 113
//        germany = Country.GERMANY();
114 114

  
115 115
        distributions.add(Distribution.NewInstance(germany, PresenceTerm.PRESENT()));
116
        distributions.add(Distribution.NewInstance(termService.getDefinedTermByIdInVocabulary("DE", Country.uuidCountryVocabulary, Country.class), PresenceTerm.INTRODUCED()));
116
        distributions.add(Distribution.NewInstance(termService.findByIdInVocabulary("DE", Country.uuidCountryVocabulary, Country.class), PresenceTerm.INTRODUCED()));
117 117
        Map<PresenceAbsenceTermBase<?>, Color> presenceAbsenceColorMap = new HashMap<PresenceAbsenceTermBase<?>, Color>();
118 118
        presenceAbsenceColorMap.put(PresenceTerm.PRESENT(), Color.BLUE);
119 119
        presenceAbsenceColorMap.put(PresenceTerm.INTRODUCED(), Color.BLACK);

Also available in: Unified diff