Changeset 33884 in osm for applications/editors
- Timestamp:
- 2017-11-25T01:15:23+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/pt_assistant/test/unit/org/openstreetmap/josm/plugins/pt_assistant
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/test/unit/org/openstreetmap/josm/plugins/pt_assistant/actions/SplitRoundaboutTest.java
r33429 r33884 16 16 import org.junit.Test; 17 17 import org.openstreetmap.josm.Main; 18 import org.openstreetmap.josm.actions.SplitWayAction; 19 import org.openstreetmap.josm.actions.SplitWayAction.SplitWayResult; 18 import org.openstreetmap.josm.command.SplitWayCommand; 20 19 import org.openstreetmap.josm.data.osm.DataSet; 21 20 import org.openstreetmap.josm.data.osm.Node; … … 24 23 import org.openstreetmap.josm.data.osm.SimplePrimitiveId; 25 24 import org.openstreetmap.josm.data.osm.Way; 25 import org.openstreetmap.josm.gui.MainApplication; 26 26 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 27 27 import org.openstreetmap.josm.io.IllegalDataException; … … 30 30 import org.openstreetmap.josm.testutils.JOSMTestRules; 31 31 32 /** 33 * Unit tests of {@link SplitRoundabout}. 34 */ 32 35 public class SplitRoundaboutTest extends AbstractTest { 33 36 … … 47 50 ds = OsmReader.parseDataSet(new FileInputStream(AbstractTest.PATH_TO_ROUNDABOUT), null); 48 51 layer = new OsmDataLayer(ds, OsmDataLayer.createNewName(), null); 49 Main .getLayerManager().addLayer(layer);52 MainApplication.getLayerManager().addLayer(layer); 50 53 51 Main.pref.put ("pt_assistant.roundabout-splitter.alignalways", true);54 Main.pref.putBoolean("pt_assistant.roundabout-splitter.alignalways", true); 52 55 action = new SplitRoundaboutAction(); 53 56 r1 = (Way) ds.getPrimitiveById(new SimplePrimitiveId(293302077L, OsmPrimitiveType.WAY)); … … 61 64 action.getRemoveRoundaboutFromRelationsCommand(w).executeCommand(); 62 65 List<Node> splitNodes = action.getSplitNodes(w); 63 SplitWay Result result = SplitWayAction.split(layer,w, splitNodes, Collections.emptyList());64 result. getCommand().executeCommand();66 SplitWayCommand result = SplitWayCommand.split(w, splitNodes, Collections.emptyList()); 67 result.executeCommand(); 65 68 Collection<Way> splitWays = result.getNewWays(); 66 69 splitWays.add(result.getOriginalWay()); -
applications/editors/josm/plugins/pt_assistant/test/unit/org/openstreetmap/josm/plugins/pt_assistant/data/StopToWayAssignerTest.java
r33429 r33884 14 14 import org.openstreetmap.josm.plugins.pt_assistant.utils.StopToWayAssigner; 15 15 16 /** 17 * Unit tests of {@link StopToWayAssigner}. 18 */ 16 19 public class StopToWayAssignerTest extends AbstractTest { 17 20
Note:
See TracChangeset
for help on using the changeset viewer.