Revision f4d35a72
Added by Andreas Kohlbecker almost 8 years ago
cdmlib-persistence/src/test/java/eu/etaxonomy/cdm/persistence/dao/hibernate/taxon/ClassificationDaoHibernateImplTest.java | ||
---|---|---|
30 | 30 |
import eu.etaxonomy.cdm.persistence.dao.reference.IReferenceDao; |
31 | 31 |
import eu.etaxonomy.cdm.persistence.dao.taxon.IClassificationDao; |
32 | 32 |
import eu.etaxonomy.cdm.persistence.dao.taxon.ITaxonDao; |
33 |
import eu.etaxonomy.cdm.persistence.dto.ClassificationLookupDTO; |
|
33 | 34 |
import eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest; |
34 | 35 |
import eu.etaxonomy.cdm.test.unitils.CleanSweepInsertLoadStrategy; |
35 | 36 |
|
... | ... | |
166 | 167 |
// } |
167 | 168 |
} |
168 | 169 |
|
170 |
@Test |
|
171 |
@DataSet(value="ClassificationDaoHibernateImplTest.listRankSpecificRootNodes.xml") |
|
172 |
public void testClassificationLookup() { |
|
173 |
|
|
174 |
Classification classification = classificationDao.load(UUID.fromString(CLASSIFICATION_FULL_UUID)); |
|
175 |
ClassificationLookupDTO classificationLookupDto = classificationDao.classificationLookup(classification); |
|
176 |
assertEquals(4, classificationLookupDto.getTaxonIds().size()); |
|
177 |
} |
|
178 |
|
|
169 | 179 |
|
170 | 180 |
/** |
171 | 181 |
* At the moment the data created is special to the issue http://dev.e-taxonomy.eu/trac/ticket/2778 |
Also available in: Unified diff
attempt to reduce the overhead imposed by database access