Revision c150ee7f
Added by Andreas Müller almost 11 years ago
cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/specimen/excel/in/ExcelSpecimenImportExampleTest.java | ||
---|---|---|
31 | 31 |
import eu.etaxonomy.cdm.io.common.IImportConfigurator; |
32 | 32 |
import eu.etaxonomy.cdm.model.name.NomenclaturalCode; |
33 | 33 |
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit; |
34 |
import eu.etaxonomy.cdm.model.occurrence.FieldObservation;
|
|
34 |
import eu.etaxonomy.cdm.model.occurrence.FieldUnit;
|
|
35 | 35 |
import eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest; |
36 | 36 |
|
37 | 37 |
/** |
... | ... | |
83 | 83 |
assertTrue("Return value for import.invoke should be true", result); |
84 | 84 |
assertEquals("Number of specimen should be 3", 3, |
85 | 85 |
occurrenceService.count(DerivedUnit.class)); |
86 |
assertEquals("Number of field observations should be 3", 3,
|
|
87 |
occurrenceService.count(FieldObservation.class));
|
|
86 |
assertEquals("Number of field units should be 3", 3,
|
|
87 |
occurrenceService.count(FieldUnit.class));
|
|
88 | 88 |
|
89 | 89 |
printDataSet(System.out, new String[]{"SpecimenOrObservationBase","GatheringEvent","DerivationEvent"}); |
90 | 90 |
|
... | ... | |
98 | 98 |
boolean result = defaultImport.invoke(configurator); |
99 | 99 |
assertTrue("Return value for import.invoke should be true", result); |
100 | 100 |
assertEquals("Number of specimen should be 3", 3, occurrenceService.count(DerivedUnit.class)); |
101 |
assertEquals("Number of field observations should be 3", 3, occurrenceService.count(FieldObservation.class));
|
|
101 |
assertEquals("Number of field units should be 3", 3, occurrenceService.count(FieldUnit.class));
|
|
102 | 102 |
|
103 | 103 |
// try { |
104 | 104 |
// String filePath = System.getProperty("java.io.tmpdir") |
Also available in: Unified diff
rename FieldObservation -> FieldUnit #3351