Ignore:
Timestamp:
2016-02-11T23:17:32+01:00 (9 years ago)
Author:
floscher
Message:

[mapillary] Let TrafficoSign.getSign() return an object of type TrafficoSign instead of an array of type TrafficoSignElement[]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/traffico/TrafficoSignTest.java

    r31795 r32066  
    11package org.openstreetmap.josm.plugins.mapillary.traffico;
    22
    3 import static org.junit.Assert.assertArrayEquals;
    43import static org.junit.Assert.assertEquals;
    54import static org.junit.Assert.assertNotEquals;
    65
    76import org.junit.Test;
    8 import org.openstreetmap.josm.plugins.mapillary.utils.TestUtil;
    97
    108public class TrafficoSignTest {
    11 
    129  @Test
    1310  public void test() {
    14     assertArrayEquals(null, TrafficoSign.getSign("de", ""));
    15     TrafficoSignElement[] trafficSignals = TrafficoSign.getSign("de", "traffic-signals-ahead");
     11    assertEquals(null, TrafficoSign.getSign("de", ""));
     12    TrafficoSign trafficSignals = TrafficoSign.getSign("de", "traffic-signals-ahead");
    1613    assertNotEquals(null, trafficSignals);
    17     assertEquals(5, trafficSignals.length);
    18     assertArrayEquals(null, TrafficoSign.getSign("us", ""));
    19     assertArrayEquals(null, TrafficoSign.getSign("xyz", ""));
     14    assertEquals(5, trafficSignals.getNumElements());
     15    assertEquals(null, TrafficoSign.getSign("us", ""));
     16    assertEquals(null, TrafficoSign.getSign("xyz", ""));
    2017  }
    21 
    22   @Test
    23   public void testUtilityClass() {
    24     TestUtil.testUtilityClass(TrafficoSign.class);
    25   }
    26 
    2718}
Note: See TracChangeset for help on using the changeset viewer.