Changeset 17896 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2021-05-17T19:44:04+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/WaySegmentTest.java
r17275 r17896 42 42 w.addNode(n4); 43 43 w.addNode(n1); 44 Assert.assertEquals(WaySegment.forNodePair(w, n1, n2). lowerIndex, 0);45 Assert.assertEquals(WaySegment.forNodePair(w, n1, n3). lowerIndex, 2);46 Assert.assertEquals(WaySegment.forNodePair(w, n1, n4). lowerIndex, 4);47 Assert.assertEquals(WaySegment.forNodePair(w, n4, n1). lowerIndex, 5);44 Assert.assertEquals(WaySegment.forNodePair(w, n1, n2).getLowerIndex(), 0); 45 Assert.assertEquals(WaySegment.forNodePair(w, n1, n3).getLowerIndex(), 2); 46 Assert.assertEquals(WaySegment.forNodePair(w, n1, n4).getLowerIndex(), 4); 47 Assert.assertEquals(WaySegment.forNodePair(w, n4, n1).getLowerIndex(), 5); 48 48 try { 49 Assert.assertEquals(WaySegment.forNodePair(w, n3, n4). lowerIndex, 5);49 Assert.assertEquals(WaySegment.forNodePair(w, n3, n4).getLowerIndex(), 5); 50 50 throw new IllegalStateException("Expecting IllegalArgumentException"); 51 51 } catch (IllegalArgumentException expected) {
Note:
See TracChangeset
for help on using the changeset viewer.