Changeset 33417 in osm for applications/editors/josm/plugins/pt_assistant/test/unit
- Timestamp:
- 2017-06-28T18:00:52+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/test/unit/org/openstreetmap/josm/plugins/pt_assistant/actions/SplitRoundaboutTest.java
r33415 r33417 71 71 @Test 72 72 public void test1() { 73 74 73 Collection<Way> sw1 = splitWay(r1); 74 assertEquals(4, sw1.size()); 75 75 sw1.forEach(w -> { 76 76 if (w.firstNode().getUniqueId() == 267843779L && w.lastNode().getUniqueId() == 2968718407L) … … 89 89 @Test 90 90 public void test2() { 91 92 91 Collection<Way> sw2 = splitWay(r2); 92 assertEquals(4, sw2.size()); 93 93 sw2.forEach(w -> { 94 94 if(w.firstNode().getUniqueId() == 2158181809L && w.lastNode().getUniqueId() == 2158181798L) … … 107 107 @Test 108 108 public void test3() { 109 110 109 Collection<Way> sw3 = splitWay(r3); 110 assertEquals(4, sw3.size()); 111 111 sw3.forEach(w -> { 112 112 if(w.firstNode().getUniqueId() == 280697532L && w.lastNode().getUniqueId() == 280697452L) … … 125 125 @Test 126 126 public void test4() { 127 128 129 130 131 132 133 134 135 136 137 138 127 Collection<Way> sw4 = splitWay(r4); 128 assertEquals(10, sw4.size()); 129 Node entry11 = (Node) ds.getPrimitives(p -> p.hasTag("name", "nentry1-1")).iterator().next(); 130 Node exit11 = (Node) ds.getPrimitives(p -> p.hasTag("name", "nexit1-1")).iterator().next(); 131 Node entry12 = (Node) ds.getPrimitives(p -> p.hasTag("name", "nentry1-2")).iterator().next(); 132 Node exit12 = (Node) ds.getPrimitives(p -> p.hasTag("name", "nexit1-2")).iterator().next(); 133 Node entry21 = (Node) ds.getPrimitives(p -> p.hasTag("name", "nentry2-1")).iterator().next(); 134 Node exit21 = (Node) ds.getPrimitives(p -> p.hasTag("name", "nexit2-1")).iterator().next(); 135 Node entry22 = (Node) ds.getPrimitives(p -> p.hasTag("name", "nentry2-2")).iterator().next(); 136 Node exit22 = (Node) ds.getPrimitives(p -> p.hasTag("name", "nexit2-2")).iterator().next(); 137 Node entry3 = (Node) ds.getPrimitives(p -> p.hasTag("name", "nentry3")).iterator().next(); 138 Node exit3 = (Node) ds.getPrimitives(p -> p.hasTag("name", "nexit3")).iterator().next(); 139 139 140 140 sw4.forEach(w -> {
Note:
See TracChangeset
for help on using the changeset viewer.