Revision de8249cf
Added by Andreas Müller about 3 years ago
cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/specimen/excel/in/ExcelImportConfiguratorTest.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
import eu.etaxonomy.cdm.api.service.INameService; |
23 | 23 |
import eu.etaxonomy.cdm.api.service.IOccurrenceService; |
24 |
import eu.etaxonomy.cdm.common.URI; |
|
24 | 25 |
import eu.etaxonomy.cdm.io.common.CdmApplicationAwareDefaultImport; |
25 | 26 |
import eu.etaxonomy.cdm.io.common.IImportConfigurator; |
26 | 27 |
import eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest; |
... | ... | |
48 | 49 |
String inputFile = "/eu/etaxonomy/cdm/io/specimen/excel/in/ExcelImportConfiguratorTest-input.xls"; |
49 | 50 |
URL url = this.getClass().getResource(inputFile); |
50 | 51 |
assertNotNull("URL for the test file '" + inputFile + "' does not exist", url); |
51 |
configurator = SpecimenSynthesysExcelImportConfigurator.NewInstance(url.toURI(), null, false);
|
|
52 |
configurator = SpecimenSynthesysExcelImportConfigurator.NewInstance(URI.fromUrl(url), null, false);
|
|
52 | 53 |
assertNotNull("Configurator could not be created", configurator); |
53 | 54 |
} |
54 | 55 |
|
Also available in: Unified diff
ref #9114 add URI Wrapper and replace all java.net.URI occurrences by the wrapper in cdmlib