Changeset 17961 in josm for trunk/test/unit
- Timestamp:
- 2021-07-08T20:33:28+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/imagery/vectortile/mapbox/style/MapboxVectorStyleTest.java
r17960 r17961 9 9 import static org.junit.jupiter.api.Assertions.assertTrue; 10 10 import static org.junit.jupiter.api.Assertions.fail; 11 12 11 13 12 import java.awt.Color; … … 19 18 import java.io.IOException; 20 19 import java.nio.charset.StandardCharsets; 21 import java.nio.file.Paths;22 20 import java.text.MessageFormat; 23 21 import java.util.ArrayList; … … 37 35 import javax.json.JsonValue; 38 36 37 import org.awaitility.Awaitility; 38 import org.awaitility.Durations; 39 import org.junit.jupiter.api.Test; 40 import org.junit.jupiter.api.extension.RegisterExtension; 41 import org.junit.jupiter.api.io.TempDir; 39 42 import org.openstreetmap.josm.TestUtils; 40 43 import org.openstreetmap.josm.gui.MainApplication; … … 50 53 51 54 import nl.jqno.equalsverifier.EqualsVerifier; 52 import org.awaitility.Awaitility;53 import org.awaitility.Durations;54 import org.junit.jupiter.api.Test;55 import org.junit.jupiter.api.extension.RegisterExtension;56 import org.junit.jupiter.api.io.TempDir;57 55 58 56 /** … … 162 160 ImageProvider.clearCache(); 163 161 int hiDpiScalar = hiDpi ? 2 : 1; 164 String spritePath = this.spritesDirectory + "/sprite";162 String spritePath = this.spritesDirectory.toURI() + "sprite"; 165 163 MapboxVectorStyle style = new MapboxVectorStyle(getJson(JsonObject.class, 166 MessageFormat.format(BASE_STYLE, "sprite_test", "\"sprite\":\" file:/" + spritePath + "\"")));167 assertEquals( "file:/" +spritePath, style.getSpriteUrl());164 MessageFormat.format(BASE_STYLE, "sprite_test", "\"sprite\":\"" + spritePath + "\""))); 165 assertEquals(spritePath, style.getSpriteUrl()); 168 166 169 167 AtomicBoolean saveFinished = new AtomicBoolean();
Note:
See TracChangeset
for help on using the changeset viewer.