Revision d3c53a58
Added by Katja Luther over 7 years ago
cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/specimen/abcd206/in/SpecimenImportConfiguratorTest.java | ||
---|---|---|
18 | 18 |
import java.net.URL; |
19 | 19 |
import java.text.ParseException; |
20 | 20 |
import java.util.List; |
21 |
import java.util.Set; |
|
21 | 22 |
import java.util.UUID; |
22 | 23 |
|
23 | 24 |
import org.junit.Assert; |
... | ... | |
427 | 428 |
Assert.fail(); |
428 | 429 |
} |
429 | 430 |
assertNotNull("Configurator could not be created", importConfigurator); |
430 |
|
|
431 |
importConfigurator.setIgnoreImportOfExistingSpecimen(true); |
|
431 | 432 |
boolean result = defaultImport.invoke(importConfigurator).isSuccess(); |
432 | 433 |
assertTrue("Return value for import.invoke should be true", result); |
433 | 434 |
assertEquals("Number of derived units is incorrect", 1, occurrenceService.count(DerivedUnit.class)); |
... | ... | |
648 | 649 |
} |
649 | 650 |
} |
650 | 651 |
assertNotNull(defaultClassification); |
652 |
Set<TaxonNode> allNodes = defaultClassification.getAllNodes(); |
|
653 |
for (TaxonNode node:allNodes){ |
|
654 |
System.out.println(node.getTaxon().getTitleCache()); |
|
655 |
} |
|
656 |
|
|
651 | 657 |
assertEquals(3, defaultClassification.getAllNodes().size()); |
652 | 658 |
|
653 | 659 |
} |
Also available in: Unified diff
specimen import changes