Changeset 13950 in josm for trunk/test


Ignore:
Timestamp:
2018-06-18T01:51:26+02:00 (13 months ago)
Author:
Don-vip
Message:

use IPrimitive in SearchAction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/actions/JoinAreasActionTest.java

    r12728 r13950  
    2020import org.openstreetmap.josm.actions.search.SearchAction;
    2121import org.openstreetmap.josm.data.osm.DataSet;
     22import org.openstreetmap.josm.data.osm.IPrimitive;
    2223import org.openstreetmap.josm.data.osm.Node;
    2324import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    8586            for (String ref : new String[]{"A", "B", "C", "D", "E"}) {
    8687                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);
    8889                assertEquals(2, found.size());
    8990
    9091                MainApplication.getMenu().joinAreas.join(Utils.filteredCollection(found, Way.class));
    9192
    92                 Collection<OsmPrimitive> found2 = SearchAction.searchAndReturn("type:way ref="+ref, SearchMode.replace);
     93                Collection<IPrimitive> found2 = SearchAction.searchAndReturn("type:way ref="+ref, SearchMode.replace);
    9394                assertEquals(1, found2.size());
    9495                System.out.println(" ==> OK");
Note: See TracChangeset for help on using the changeset viewer.