Changeset 17642 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2021-03-23T00:47:34+01:00 (4 years ago)
Author:
simon04
Message:

see #19078 - Common interface TagCondition

File:
1 edited

Legend:

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

    r17333 r17642  
    1313import org.openstreetmap.josm.gui.mappaint.Environment;
    1414import org.openstreetmap.josm.gui.mappaint.mapcss.Condition.Context;
    15 import org.openstreetmap.josm.gui.mappaint.mapcss.Condition.ToTagConvertable;
     15import org.openstreetmap.josm.gui.mappaint.mapcss.Condition.TagCondition;
    1616import org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.Op;
    1717import org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.SimpleKeyValueCondition;
     
    6363        assertTrue(op instanceof SimpleKeyValueCondition);
    6464        assertEquals("[k1=v1]", op.toString());
    65         assertEquals("k1", ((ToTagConvertable) op).asTag(null).getKey());
    66         assertEquals("v1", ((ToTagConvertable) op).asTag(null).getValue());
     65        assertEquals("k1", ((TagCondition) op).asTag(null).getKey());
     66        assertEquals("v1", ((TagCondition) op).asTag(null).getValue());
    6767    }
    6868
     
    7979        assertFalse(op.applies(genEnv(node4)));
    8080
    81         assertEquals("k1", ((ToTagConvertable) op).asTag(null).getKey());
    82         assertEquals("k2", ((ToTagConvertable) op).asTag(null).getValue());
     81        assertEquals("k1", ((TagCondition) op).asTag(null).getKey());
     82        assertEquals("k2", ((TagCondition) op).asTag(null).getValue());
    8383    }
    8484
Note: See TracChangeset for help on using the changeset viewer.