Revision de8249cf
Added by Andreas Müller over 3 years ago
cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/taxonx/TaxonXImportConfiguratorTest.java | ||
---|---|---|
21 | 21 |
import org.unitils.spring.annotation.SpringBeanByType; |
22 | 22 |
|
23 | 23 |
import eu.etaxonomy.cdm.api.service.INameService; |
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; |
... | ... | |
45 | 46 |
URL url = this.getClass().getResource(inputFile); |
46 | 47 |
assertNotNull("URL for the test file '" + inputFile + "' does not exist", url); |
47 | 48 |
try { |
48 |
configurator = TaxonXImportConfigurator.NewInstance(url.toURI(), null);
|
|
49 |
configurator = TaxonXImportConfigurator.NewInstance(URI.fromUrl(url), null);
|
|
49 | 50 |
} catch (URISyntaxException e) { |
50 | 51 |
e.printStackTrace(); |
51 | 52 |
Assert.fail(); |
Also available in: Unified diff
ref #9114 add URI Wrapper and replace all java.net.URI occurrences by the wrapper in cdmlib