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-commons/src/test/java/eu/etaxonomy/cdm/common/media/CdmImageInfoTest.java
6 6
import static org.junit.Assert.fail;
7 7

  
8 8
import java.io.IOException;
9
import java.net.URI;
10 9
import java.net.URL;
11 10
import java.util.Map;
12 11

  
......
16 15
import org.junit.Before;
17 16
import org.junit.Test;
18 17

  
18
import eu.etaxonomy.cdm.common.URI;
19 19
import eu.etaxonomy.cdm.common.UriUtils;
20 20

  
21 21
/**
......
38 38
    @Before
39 39
    public void setUp() throws Exception {
40 40
        URL jpegUrl = CdmImageInfoTest.class.getResource("/images/OregonScientificDS6639-DSC_0307-small.jpg");
41
        jpegUri = jpegUrl.toURI();
41
        jpegUri = new URI(jpegUrl);
42 42

  
43 43
        URL tiffUrl = CdmImageInfoTest.class.getResource("/images/OregonScientificDS6639-DSC_0307-small.tif");
44
        tiffUri = tiffUrl.toURI();
44
        tiffUri = new URI(tiffUrl);
45 45

  
46 46
        remotePngUri = URI.create("https://dev.e-taxonomy.eu/trac_htdocs/logo_edit.png");
47 47
    }

Also available in: Unified diff