Ignore:
Timestamp:
2020-03-03T02:12:44+01:00 (4 years ago)
Author:
Don-vip
Message:

see #18140 - reorganization of data(_nodist), images(_nodist), styles(_nodist), IDE and native files in a more practical file tree.

  • Everything belonging to the jar is now in resources (data, images, styles)
  • Everything not belonging to the jar is now in nodist (data, images, styles)
  • Everything related to OS native functions is now in native (linux, macosx, windows)
  • Everything related to an IDE is now in ide (eclipse, netbeans)
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  
    4545    public void loadData() throws IllegalDataException, IOException {
    4646        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"))) {
    4848                testDataset = OsmReader.parseDataSet(fis, NullProgressMonitor.INSTANCE);
    4949            }
  • trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/sort/WayConnectionTypeCalculatorTest.java

    r15076 r16006  
    5252    public void loadData() throws IllegalDataException, IOException {
    5353        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"))) {
    5555                testDataset = OsmReader.parseDataSet(fis, NullProgressMonitor.INSTANCE);
    5656            }
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImagesTest.java

    r14205 r16006  
    4646    @Test
    4747    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");
    4949        final ImageEntry i0 = new ImageEntry();
    5050        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  
    6060    @Test
    6161    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);
    6363        assertEquals("[#000000, #000000, #000000, #000000, #000000, #000000, #000000, #000000, #000000, #000000]", colors.toString());
    6464    }
     
    7272    @Test
    7373    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",
    7575                ImmutableMap.of("colormode", Integer.toString(ColorMode.VELOCITY.toIndex())), 10);
    7676        assertEquals("[#000000, #FFAD00, #FFA800, #FFA800, #FF9E00, #FF9400, #FF7000, #FF7000, #FF8000, #FF9400]", colors.toString());
     
    8585    @Test
    8686    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",
    8888                ImmutableMap.of("colormode.dynamic-range", "true",
    8989                        "colormode", Integer.toString(ColorMode.VELOCITY.toIndex())),
     
    100100    @Test
    101101    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",
    103103                ImmutableMap.of("colormode", Integer.toString(ColorMode.DIRECTION.toIndex())), 10);
    104104        assertEquals("[#000000, #EAEC25, #EDEA26, #EDE525, #ECD322, #EBB81D, #E85A0D, #E73708, #E84D0B, #EA8A15]", colors.toString());
     
    113113    @Test
    114114    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",
    116116                ImmutableMap.of("colormode", Integer.toString(ColorMode.TIME.toIndex())), 10);
    117117        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  
    192192    @Test
    193193    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);
    195195        ChildOrParentSelector css = parse("node[tag(\"amenity\") = parent_tag(\"amenity\")] ∈ *[amenity] {}");
    196196        assertFalse(css.matches(new Environment(ds.getPrimitiveById(123, OsmPrimitiveType.NODE))));
Note: See TracChangeset for help on using the changeset viewer.