Changeset 14746 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2019-01-27T22:26:35+01:00 (6 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTestIT.java
r14235 r14746 2 2 package org.openstreetmap.josm.gui.mappaint.mapcss; 3 3 4 import java.io.IOException; 5 import java.net.URL; 6 4 import org.junit.Ignore; 7 5 import org.junit.Rule; 8 6 import org.junit.Test; … … 26 24 /** 27 25 * Checks Kothic stylesheets 28 * @throws IOException if an I/O error occurs29 26 */ 30 27 @Test 31 public void testKothicStylesheets() throws IOException { 32 new MapCSSParser(new URL("https://raw.githubusercontent.com/kothic/kothic/master/src/styles/default.mapcss").openStream(), "UTF-8"); 33 new MapCSSParser(new URL("https://raw.githubusercontent.com/kothic/kothic/master/src/styles/mapink.mapcss").openStream(), "UTF-8"); 28 @Ignore("parsing fails") 29 public void testKothicStylesheets() { 30 new MapCSSStyleSource("https://raw.githubusercontent.com/kothic/kothic/master/src/styles/default.mapcss").loadStyleSource(); 31 new MapCSSStyleSource("https://raw.githubusercontent.com/kothic/kothic/master/src/styles/mapink.mapcss").loadStyleSource(); 34 32 } 35 33 } -
trunk/test/unit/org/openstreetmap/josm/io/OsmWriterTest.java
r14274 r14746 68 68 } 69 69 assertEquals("<?xml version='1.0' encoding='UTF-8'?>" + expected, 70 baos.toString("UTF-8").replaceAll("\r", "").replaceAll("\n", "")); 70 new String(baos.toByteArray(), StandardCharsets.UTF_8) 71 .replaceAll("\r", "") 72 .replaceAll("\n", "")); 71 73 } 72 74 … … 85 87 } 86 88 assertEquals("<?xml version='1.0' encoding='UTF-8'?><osm version='0.6' locked='true' generator='JOSM'></osm>", 87 baos.toString("UTF-8").replaceAll("\r", "").replaceAll("\n", "")); 89 new String(baos.toByteArray(), StandardCharsets.UTF_8) 90 .replaceAll("\r", "") 91 .replaceAll("\n", "")); 88 92 } 89 93 }
Note:
See TracChangeset
for help on using the changeset viewer.