diff --git a/test/unit/org/openstreetmap/josm/command/SplitWayCommandTest.java b/test/unit/org/openstreetmap/josm/command/SplitWayCommandTest.java index 6e17ba86eb7..ee87448bc2e 100644 --- a/test/unit/org/openstreetmap/josm/command/SplitWayCommandTest.java +++ b/test/unit/org/openstreetmap/josm/command/SplitWayCommandTest.java @@ -487,7 +487,7 @@ void testTicket21856DoublePoints() { final Way incomplete = new Way(1082474948, 10); final Way way1 = TestUtils.newWay("highway=residential", new Node(new LatLon(47.9971473, 8.1274441)), new Node(new LatLon(48.0011535, 8.1363531))); - final Way way2 = TestUtils.newWay("highway=residential", new Node(new LatLon(48.0012294, 8.136414)), + final Way way2 = TestUtils.newWay("highway=residential", new Node(new LatLon(48.0012294, 8.136414)), new Node(new LatLon(48.0042513, 8.1378392))); final Way splitWay = TestUtils.newWay("highway=residential", new Node(new LatLon(48.0011817, 8.1363763)), new Node(new LatLon(48.0012086, 8.1363974))); @@ -528,7 +528,7 @@ void testTicket21856DoublePointsRouteMiddle() { final Way incomplete = new Way(1082474948, 10); final Way way1 = TestUtils.newWay("highway=residential", new Node(new LatLon(47.9971473, 8.1274441)), new Node(new LatLon(48.0011535, 8.1363531))); - final Way way2 = TestUtils.newWay("highway=residential", new Node(new LatLon(48.0012294, 8.136414)), + final Way way2 = TestUtils.newWay("highway=residential", new Node(new LatLon(48.0012294, 8.136414)), new Node(new LatLon(48.0042513, 8.1378392))); final Way splitWay = TestUtils.newWay("highway=residential", new Node(new LatLon(48.0011817, 8.1363763)), new Node(new LatLon(48.0012086, 8.1363974))); @@ -565,7 +565,6 @@ void testTicket21856DoublePointsRouteMiddle() { assertWellFormedRoute(ptRelation); } - private static void assertWellFormedRoute(Relation route) { WayConnectionTypeCalculator connectionTypeCalculator = new WayConnectionTypeCalculator(); List links = connectionTypeCalculator.updateLinks(route, route.getMembers());