Changeset 17604 in josm for trunk/test


Ignore:
Timestamp:
2021-03-20T15:03:14+01:00 (3 years ago)
Author:
simon04
Message:

see #20613 - Fix MapCSSParserTest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTest.java

    r17601 r17604  
    222222    void testRegexKeyCondition() throws Exception {
    223223        KeyRegexpCondition c1 = (KeyRegexpCondition) getParser("[/.*:(backward|forward)$/]").condition(PRIMITIVE);
    224         assertEquals(Pattern.compile(".*:(backward|forward)$"), ((KeyRegexpCondition) c1).pattern);
     224        assertEquals(Pattern.compile(".*:(backward|forward)$").pattern(), c1.pattern.pattern());
    225225        assertFalse(c1.applies(getEnvironment("lanes", "3")));
    226226        assertTrue(c1.applies(getEnvironment("lanes:forward", "3")));
Note: See TracChangeset for help on using the changeset viewer.