Changeset 12359 in josm


Ignore:
Timestamp:
2017-06-09T11:55:26+02:00 (2 years ago)
Author:
michael2402
Message:

OrthogonalizeActionTest: Set the edit data set the action works on.

File:
1 edited

Legend:

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

    r11978 r12359  
    1010import org.junit.Rule;
    1111import org.junit.Test;
     12import org.openstreetmap.josm.Main;
    1213import org.openstreetmap.josm.TestUtils;
    1314import org.openstreetmap.josm.actions.OrthogonalizeAction.Direction;
     
    1718import org.openstreetmap.josm.data.osm.Node;
    1819import org.openstreetmap.josm.data.osm.Way;
     20import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    1921import org.openstreetmap.josm.io.OsmReader;
    2022import org.openstreetmap.josm.testutils.JOSMTestRules;
     
    9799        try (FileInputStream in = new FileInputStream(TestUtils.getTestDataRoot() + "orthogonalize.osm")) {
    98100            final DataSet ds = OsmReader.parseDataSet(in, null);
     101            // TODO: Executing commands depends on active edit layer
     102            Main.getLayerManager().addLayer(new OsmDataLayer(ds, "ds", null));
    99103            for (String s : search) {
    100104                ds.addSelected(SubclassFilteredCollection.filter(ds.allPrimitives(), SearchCompiler.compile(s)));
Note: See TracChangeset for help on using the changeset viewer.