Changeset 32066 in osm for applications/editors/josm/plugins/mapillary/test
- Timestamp:
- 2016-02-11T23:17:32+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/traffico/TrafficoSignTest.java
r31795 r32066 1 1 package org.openstreetmap.josm.plugins.mapillary.traffico; 2 2 3 import static org.junit.Assert.assertArrayEquals;4 3 import static org.junit.Assert.assertEquals; 5 4 import static org.junit.Assert.assertNotEquals; 6 5 7 6 import org.junit.Test; 8 import org.openstreetmap.josm.plugins.mapillary.utils.TestUtil;9 7 10 8 public class TrafficoSignTest { 11 12 9 @Test 13 10 public void test() { 14 assert ArrayEquals(null, TrafficoSign.getSign("de", ""));15 TrafficoSign Element[]trafficSignals = TrafficoSign.getSign("de", "traffic-signals-ahead");11 assertEquals(null, TrafficoSign.getSign("de", "")); 12 TrafficoSign trafficSignals = TrafficoSign.getSign("de", "traffic-signals-ahead"); 16 13 assertNotEquals(null, trafficSignals); 17 assertEquals(5, trafficSignals. length);18 assert ArrayEquals(null, TrafficoSign.getSign("us", ""));19 assert ArrayEquals(null, TrafficoSign.getSign("xyz", ""));14 assertEquals(5, trafficSignals.getNumElements()); 15 assertEquals(null, TrafficoSign.getSign("us", "")); 16 assertEquals(null, TrafficoSign.getSign("xyz", "")); 20 17 } 21 22 @Test23 public void testUtilityClass() {24 TestUtil.testUtilityClass(TrafficoSign.class);25 }26 27 18 }
Note:
See TracChangeset
for help on using the changeset viewer.