Project

General

Profile

« Previous | Next » 

Revision de8249cf

Added by Andreas Müller over 3 years ago

ref #9114 add URI Wrapper and replace all java.net.URI occurrences by the wrapper in cdmlib

View differences:

cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/sdd/in/SDDImportBenchmark.java
25 25
import com.carrotsearch.junitbenchmarks.BenchmarkRule;
26 26

  
27 27
import eu.etaxonomy.cdm.api.service.INameService;
28
import eu.etaxonomy.cdm.common.URI;
28 29
import eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest;
29 30

  
30 31
/**
......
49 50
    public void setUp() throws URISyntaxException {
50 51
        URL url = this.getClass().getResource("/eu/etaxonomy/cdm/io/sdd/Cichorieae-DA.sdd.xml");
51 52
        Assert.assertNotNull(url);
52
        configurator = SDDImportConfigurator.NewInstance(url.toURI(), null);
53
        configurator = SDDImportConfigurator.NewInstance(URI.fromUrl(url), null);
53 54
    }
54 55

  
55 56
    @BenchmarkOptions(benchmarkRounds = 1, warmupRounds = 0)

Also available in: Unified diff