Changeset 14165 in josm for trunk/test/unit
- Timestamp:
- 2018-08-19T04:34:42+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/util/MultipleNameVisitorTest.java
r10962 r14165 8 8 import org.junit.Rule; 9 9 import org.junit.Test; 10 import org.openstreetmap.josm.TestUtils; 10 11 import org.openstreetmap.josm.data.osm.Way; 11 12 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 32 33 MultipleNameVisitor visitor = new MultipleNameVisitor(); 33 34 visitor.visit(Arrays.asList(new Way(), new Way())); 34 assertEquals("2 ways", visitor.toString()); 35 assertEquals("2 ways: 0 (0 nodes), 0 (0 nodes)", visitor.toString()); 36 } 37 38 /** 39 * Non-regression test for bug #16652. 40 */ 41 @Test 42 public void testTicket16652() { 43 MultipleNameVisitor visitor = new MultipleNameVisitor(); 44 visitor.visit(Arrays.asList( 45 TestUtils.newNode("name=foo"), 46 TestUtils.newWay("addr:housename=Stark"), 47 TestUtils.newRelation("type=route"))); 48 assertEquals("3 objects: foo, House Stark (0 nodes), route (0, 0 members)", visitor.toString()); 35 49 } 36 50 }
Note:
See TracChangeset
for help on using the changeset viewer.