Project

General

Profile

Revision d1efd1c1

IDd1efd1c1f447a519988f448becf2f10c04ffbf25
Parent f61ab127
Child a0e2b61c

Added by Patrick Plitzner over 1 year ago

ref #8248, #6774 Add top level term evaluation to test

View differences:

cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/owl/in/StructureTreeOwlImportTest.java
19 19
import java.net.URL;
20 20
import java.util.ArrayList;
21 21
import java.util.Arrays;
22
import java.util.Collection;
22 23
import java.util.List;
23 24
import java.util.Set;
24 25

  
......
47 48
import eu.etaxonomy.cdm.model.term.Representation;
48 49
import eu.etaxonomy.cdm.model.term.TermType;
49 50
import eu.etaxonomy.cdm.model.term.TermVocabulary;
51
import eu.etaxonomy.cdm.persistence.dto.TermDto;
50 52
import eu.etaxonomy.cdm.persistence.query.MatchMode;
51 53
import eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest;
52 54

  
......
160 162
        assertEquals("wrong number of vocabularies", 1, vocs.size());
161 163
        TermVocabulary termVoc = vocs.iterator().next();
162 164
        assertEquals("Wrong vocabulary label", vocLabel, termVoc.getTitleCache());
165
        Collection<TermDto> topLevelTerms = vocabularyService.getTopLevelTerms(termVoc.getUuid());
166
        assertEquals("wrong number of top level terms", 4, topLevelTerms.size());
163 167

  
164 168
    }
165 169

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)