Ignore:
Timestamp:
2023-06-14T18:01:00+02:00 (18 months ago)
Author:
taylor.smock
Message:

Fix #17669, #22096: Allow placeholders in more locations in MapCSS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java

    r18690 r18757  
    4444import org.openstreetmap.josm.io.OsmReader;
    4545import org.openstreetmap.josm.testutils.JOSMTestRules;
     46import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
     47import org.openstreetmap.josm.testutils.annotations.Projection;
    4648import org.openstreetmap.josm.tools.Logging;
    4749
     
    5153 * JUnit Test of {@link MapCSSTagChecker}.
    5254 */
     55@BasicPreferences
     56@Projection
    5357class MapCSSTagCheckerTest {
    5458
     
    5862    @RegisterExtension
    5963    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    60     public JOSMTestRules test = new JOSMTestRules().projection().territories().preferences();
     64    public JOSMTestRules test = new JOSMTestRules().territories();
    6165
    6266    /**
     
    96100        assertNotNull(check);
    97101        assertEquals("{0.key}=null is deprecated", check.getDescription(null));
    98         assertEquals("fixRemove: {0.key}", check.fixCommands.get(0).toString());
     102        assertEquals("fixRemove: <{0.key}>", check.fixCommands.get(0).toString());
    99103        assertEquals("fixAdd: natural=wetland", check.fixCommands.get(1).toString());
    100104        assertEquals("fixAdd: wetland=marsh", check.fixCommands.get(2).toString());
Note: See TracChangeset for help on using the changeset viewer.