Changeset 14134 in josm for trunk/test/unit/org/openstreetmap/josm/command/SplitWayCommandTest.java
- Timestamp:
- 2018-08-11T23:33:58+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/command/SplitWayCommandTest.java
r12828 r14134 13 13 import org.junit.Test; 14 14 import org.openstreetmap.josm.command.SplitWayCommand.Strategy; 15 import org.openstreetmap.josm.data.UndoRedoHandler; 15 16 import org.openstreetmap.josm.data.coor.LatLon; 16 17 import org.openstreetmap.josm.data.osm.DataSet; … … 20 21 import org.openstreetmap.josm.data.osm.RelationMember; 21 22 import org.openstreetmap.josm.data.osm.Way; 22 import org.openstreetmap.josm.gui.MainApplication;23 23 import org.openstreetmap.josm.testutils.JOSMTestRules; 24 24 … … 121 121 final SplitWayCommand result = SplitWayCommand.splitWay( 122 122 w2, SplitWayCommand.buildSplitChunks(w2, Arrays.asList(n3, n4, n5)), new ArrayList<OsmPrimitive>(), strategy); 123 MainApplication.undoRedo.add(result);123 UndoRedoHandler.getInstance().add(result); 124 124 125 125 assertEquals(6, route.getMembersCount());
Note:
See TracChangeset
for help on using the changeset viewer.