Ignore:
Timestamp:
2021-05-17T19:44:04+02:00 (4 years ago)
Author:
simon04
Message:

see #17177 - IWaySegment: encapsulate fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/osm/WaySegmentTest.java

    r17275 r17896  
    4242        w.addNode(n4);
    4343        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);
    4848        try {
    49             Assert.assertEquals(WaySegment.forNodePair(w, n3, n4).lowerIndex, 5);
     49            Assert.assertEquals(WaySegment.forNodePair(w, n3, n4).getLowerIndex(), 5);
    5050            throw new IllegalStateException("Expecting IllegalArgumentException");
    5151        } catch (IllegalArgumentException expected) {
Note: See TracChangeset for help on using the changeset viewer.