Changeset 17642 in josm for trunk/test/unit/org
- Timestamp:
- 2021-03-23T00:47:34+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/ConditionTest.java
r17333 r17642 13 13 import org.openstreetmap.josm.gui.mappaint.Environment; 14 14 import org.openstreetmap.josm.gui.mappaint.mapcss.Condition.Context; 15 import org.openstreetmap.josm.gui.mappaint.mapcss.Condition.T oTagConvertable;15 import org.openstreetmap.josm.gui.mappaint.mapcss.Condition.TagCondition; 16 16 import org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.Op; 17 17 import org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.SimpleKeyValueCondition; … … 63 63 assertTrue(op instanceof SimpleKeyValueCondition); 64 64 assertEquals("[k1=v1]", op.toString()); 65 assertEquals("k1", ((T oTagConvertable) op).asTag(null).getKey());66 assertEquals("v1", ((T oTagConvertable) op).asTag(null).getValue());65 assertEquals("k1", ((TagCondition) op).asTag(null).getKey()); 66 assertEquals("v1", ((TagCondition) op).asTag(null).getValue()); 67 67 } 68 68 … … 79 79 assertFalse(op.applies(genEnv(node4))); 80 80 81 assertEquals("k1", ((T oTagConvertable) op).asTag(null).getKey());82 assertEquals("k2", ((T oTagConvertable) op).asTag(null).getValue());81 assertEquals("k1", ((TagCondition) op).asTag(null).getKey()); 82 assertEquals("k2", ((TagCondition) op).asTag(null).getValue()); 83 83 } 84 84
Note:
See TracChangeset
for help on using the changeset viewer.