Ignore:
Timestamp:
2014-08-01T19:17:40+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #10206 - Check MapCSS validator assertions for local rules if new advanced option validator.check_assert_local_rules is enabled in preferences

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/tagging/PresetClassificationsTest.java

    r7210 r7356  
    22package org.openstreetmap.josm.gui.tagging;
    33
    4 import org.junit.BeforeClass;
    5 import org.junit.Test;
    6 import org.openstreetmap.josm.JOSMFixture;
    7 import org.openstreetmap.josm.TestUtils;
    8 import org.openstreetmap.josm.data.osm.Node;
    9 import org.openstreetmap.josm.data.osm.OsmPrimitive;
    10 import org.openstreetmap.josm.data.osm.Way;
    11 import org.openstreetmap.josm.tools.Utils;
    12 import org.xml.sax.SAXException;
     4import static org.junit.Assert.assertTrue;
    135
    146import java.io.IOException;
     
    1810import java.util.List;
    1911
    20 import static org.junit.Assert.assertTrue;
     12import org.junit.BeforeClass;
     13import org.junit.Test;
     14import org.openstreetmap.josm.JOSMFixture;
     15import org.openstreetmap.josm.data.osm.Node;
     16import org.openstreetmap.josm.data.osm.OsmPrimitive;
     17import org.openstreetmap.josm.data.osm.OsmUtils;
     18import org.openstreetmap.josm.data.osm.Way;
     19import org.openstreetmap.josm.tools.Utils;
     20import org.xml.sax.SAXException;
    2121
    2222public class PresetClassificationsTest {
     
    6161    @Test
    6262    public void testRelationsForTram() {
    63         final OsmPrimitive tram = TestUtils.createPrimitive("way railway=tram");
     63        final OsmPrimitive tram = OsmUtils.createPrimitive("way railway=tram");
    6464        assertTrue("railway=tram should match 'Railway route' for relation creation", getMatchingPresetNames("route", tram).contains("Railway route"));
    6565        assertTrue("railway=tram should match 'Public transport route' for relation creation", getMatchingPresetNames("route", tram).contains("Public transport route"));
    6666        assertTrue("railway=tram should not match 'Bus route'", !getMatchingPresetNames("route", tram).contains("Bus route"));
    6767    }
    68 
    6968}
Note: See TracChangeset for help on using the changeset viewer.