Changeset 16006 in josm for trunk/test/unit/org/openstreetmap/josm/gui
- Timestamp:
- 2020-03-03T02:12:44+01:00 (4 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/gui
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/sort/RelationSorterTest.java
r15034 r16006 45 45 public void loadData() throws IllegalDataException, IOException { 46 46 if (testDataset == null) { 47 try (InputStream fis = Files.newInputStream(Paths.get(" data_nodist/relation_sort.osm"))) {47 try (InputStream fis = Files.newInputStream(Paths.get("nodist/data/relation_sort.osm"))) { 48 48 testDataset = OsmReader.parseDataSet(fis, NullProgressMonitor.INSTANCE); 49 49 } -
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/sort/WayConnectionTypeCalculatorTest.java
r15076 r16006 52 52 public void loadData() throws IllegalDataException, IOException { 53 53 if (testDataset == null) { 54 try (InputStream fis = Files.newInputStream(Paths.get(" data_nodist/relation_sort.osm"))) {54 try (InputStream fis = Files.newInputStream(Paths.get("nodist/data/relation_sort.osm"))) { 55 55 testDataset = OsmReader.parseDataSet(fis, NullProgressMonitor.INSTANCE); 56 56 } -
trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImagesTest.java
r14205 r16006 46 46 @Test 47 47 public void testAutoGuess() throws Exception { 48 final GpxData gpx = GpxReaderTest.parseGpxData(" data_nodist/2094047.gpx");48 final GpxData gpx = GpxReaderTest.parseGpxData("nodist/data/2094047.gpx"); 49 49 final ImageEntry i0 = new ImageEntry(); 50 50 i0.setExifTime(DateUtils.fromString("2016:01:03 11:59:54")); // 4 sec before start of GPX -
trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelperTest.java
r15497 r16006 60 60 @Test 61 61 public void testNone() throws IOException, SAXException { 62 final List<String> colors = calculateColors(" data_nodist/2094047.gpx", ImmutableMap.of(), 10);62 final List<String> colors = calculateColors("nodist/data/2094047.gpx", ImmutableMap.of(), 10); 63 63 assertEquals("[#000000, #000000, #000000, #000000, #000000, #000000, #000000, #000000, #000000, #000000]", colors.toString()); 64 64 } … … 72 72 @Test 73 73 public void testVelocity() throws IOException, SAXException { 74 final List<String> colors = calculateColors(" data_nodist/2094047.gpx",74 final List<String> colors = calculateColors("nodist/data/2094047.gpx", 75 75 ImmutableMap.of("colormode", Integer.toString(ColorMode.VELOCITY.toIndex())), 10); 76 76 assertEquals("[#000000, #FFAD00, #FFA800, #FFA800, #FF9E00, #FF9400, #FF7000, #FF7000, #FF8000, #FF9400]", colors.toString()); … … 85 85 @Test 86 86 public void testVelocityDynamic() throws IOException, SAXException { 87 final List<String> colors = calculateColors(" data_nodist/2094047.gpx",87 final List<String> colors = calculateColors("nodist/data/2094047.gpx", 88 88 ImmutableMap.of("colormode.dynamic-range", "true", 89 89 "colormode", Integer.toString(ColorMode.VELOCITY.toIndex())), … … 100 100 @Test 101 101 public void testDirection() throws IOException, SAXException { 102 final List<String> colors = calculateColors(" data_nodist/2094047.gpx",102 final List<String> colors = calculateColors("nodist/data/2094047.gpx", 103 103 ImmutableMap.of("colormode", Integer.toString(ColorMode.DIRECTION.toIndex())), 10); 104 104 assertEquals("[#000000, #EAEC25, #EDEA26, #EDE525, #ECD322, #EBB81D, #E85A0D, #E73708, #E84D0B, #EA8A15]", colors.toString()); … … 113 113 @Test 114 114 public void testTime() throws IOException, SAXException { 115 final List<String> colors = calculateColors(" data_nodist/2094047.gpx",115 final List<String> colors = calculateColors("nodist/data/2094047.gpx", 116 116 ImmutableMap.of("colormode", Integer.toString(ColorMode.TIME.toIndex())), 10); 117 117 assertEquals("[#000000, #FF0000, #FF0000, #FF0500, #FF0500, #FF0A00, #FF0A00, #FF1F00, #FF2E00, #FF3300]", colors.toString()); -
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/ChildOrParentSelectorTest.java
r15988 r16006 192 192 @Test 193 193 public void testContains() throws Exception { 194 ds = OsmReader.parseDataSet(Files.newInputStream(Paths.get(" data_nodist/amenity-in-amenity.osm")), null);194 ds = OsmReader.parseDataSet(Files.newInputStream(Paths.get("nodist/data/amenity-in-amenity.osm")), null); 195 195 ChildOrParentSelector css = parse("node[tag(\"amenity\") = parent_tag(\"amenity\")] ∈ *[amenity] {}"); 196 196 assertFalse(css.matches(new Environment(ds.getPrimitiveById(123, OsmPrimitiveType.NODE))));
Note:
See TracChangeset
for help on using the changeset viewer.