Changeset 13950 in josm for trunk/test/unit/org
- Timestamp:
- 2018-06-18T01:51:26+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/JoinAreasActionTest.java
r12728 r13950 20 20 import org.openstreetmap.josm.actions.search.SearchAction; 21 21 import org.openstreetmap.josm.data.osm.DataSet; 22 import org.openstreetmap.josm.data.osm.IPrimitive; 22 23 import org.openstreetmap.josm.data.osm.Node; 23 24 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 85 86 for (String ref : new String[]{"A", "B", "C", "D", "E"}) { 86 87 System.out.print("Joining ways " + ref); 87 Collection< OsmPrimitive> found = SearchAction.searchAndReturn("type:way ref="+ref, SearchMode.replace);88 Collection<IPrimitive> found = SearchAction.searchAndReturn("type:way ref="+ref, SearchMode.replace); 88 89 assertEquals(2, found.size()); 89 90 90 91 MainApplication.getMenu().joinAreas.join(Utils.filteredCollection(found, Way.class)); 91 92 92 Collection< OsmPrimitive> found2 = SearchAction.searchAndReturn("type:way ref="+ref, SearchMode.replace);93 Collection<IPrimitive> found2 = SearchAction.searchAndReturn("type:way ref="+ref, SearchMode.replace); 93 94 assertEquals(1, found2.size()); 94 95 System.out.println(" ==> OK");
Note:
See TracChangeset
for help on using the changeset viewer.