Revision e6d7b501
Added by Andreas Müller almost 7 years ago
cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/dwca/in/DatabaseMappingTest.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
import eu.etaxonomy.cdm.database.ICdmDataSource; |
23 | 23 |
import eu.etaxonomy.cdm.io.dwca.in.IImportMapping.CdmKey; |
24 |
import eu.etaxonomy.cdm.model.name.BotanicalName; |
|
25 | 24 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase; |
26 | 25 |
import eu.etaxonomy.cdm.model.name.TaxonNameFactory; |
27 | 26 |
|
... | ... | |
88 | 87 |
Assert.assertNotNull("Result should not be null", result); |
89 | 88 |
Assert.assertFalse("Result should not be empty", result.isEmpty()); |
90 | 89 |
|
91 |
boolean exists = mapping.exists(sourceNS, sourceId, BotanicalName.class);
|
|
90 |
boolean exists = mapping.exists(sourceNS, sourceId, TaxonNameBase.class);
|
|
92 | 91 |
Assert.assertTrue("Mapping should exist", exists); |
93 |
exists = mapping.exists(sourceNS + "xyz", sourceId, BotanicalName.class);
|
|
92 |
exists = mapping.exists(sourceNS + "xyz", sourceId, TaxonNameBase.class);
|
|
94 | 93 |
Assert.assertFalse("Mapping with wrong namespace should not exist", exists); |
95 |
exists = mapping.exists(sourceNS + "xyz", sourceId, BotanicalName.class);
|
|
94 |
exists = mapping.exists(sourceNS + "xyz", sourceId, TaxonNameBase.class);
|
|
96 | 95 |
Assert.assertFalse("Mapping with wrong ID should not exist", exists); |
97 | 96 |
|
98 | 97 |
} |
Also available in: Unified diff
ref #6368 remove TaxonNameBase subclasses