Ignore:
Timestamp:
2009-12-05T18:23:03+01:00 (15 years ago)
Author:
jttt
Message:

Encalupse OsmPrimitive.incomplete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java

    r2569 r2578  
    255255        for (Way way : referers.getWays()) {
    256256            assertEquals(w.getId(), way.getId());
    257             assertEquals(false, way.incomplete);
     257            assertEquals(false, way.isIncomplete());
    258258        }
    259259    }
     
    274274        for (Way way : referers.getWays()) {
    275275            assertEquals(w.getId(), way.getId());
    276             assertEquals(false, way.incomplete);
     276            assertEquals(false, way.isIncomplete());
    277277            assertEquals(10, w.getNodesCount());
    278278        }
     
    292292        assertEquals(6, referers.getWays().size());  // 6 ways referred by two relations
    293293        for (Way w1 : referers.getWays()) {
    294             assertEquals(true, w1.incomplete);
     294            assertEquals(true, w1.isIncomplete());
    295295        }
    296296        assertEquals(2, referers.getRelations().size());  // two relations referring to w
     
    298298        Relation r = lookupRelation(referers, 0);
    299299        assertNotNull(r);
    300         assertEquals(false, r.incomplete);
     300        assertEquals(false, r.isIncomplete());
    301301        r = lookupRelation(referers, 1);
    302         assertEquals(false, r.incomplete);
     302        assertEquals(false, r.isIncomplete());
    303303    }
    304304
     
    315315        assertEquals(6, referers.getWays().size());  // 6 ways referred by two relations
    316316        for (Way w1 : referers.getWays()) {
    317             assertEquals(false, w1.incomplete);
     317            assertEquals(false, w1.isIncomplete());
    318318        }
    319319        assertEquals(2, referers.getRelations().size());  // two relations referring to
     
    332332        Relation r = lookupRelation(referers, 0);
    333333        assertNotNull(r);
    334         assertEquals(false, r.incomplete);
     334        assertEquals(false, r.isIncomplete());
    335335        r = lookupRelation(referers, 1);
    336         assertEquals(false, r.incomplete);
     336        assertEquals(false, r.isIncomplete());
    337337    }
    338338
     
    352352        r = lookupRelation(referers, 6);
    353353        assertNotNull(r);
    354         assertEquals(false, r.incomplete);
     354        assertEquals(false, r.isIncomplete());
    355355        referringRelationsIds.add(r.getId());
    356356        r = lookupRelation(referers, 7);
    357357        assertNotNull(r);
    358         assertEquals(false, r.incomplete);
     358        assertEquals(false, r.isIncomplete());
    359359        referringRelationsIds.add(r.getId());
    360360        r = lookupRelation(referers, 8);
    361361        assertNotNull(r);
    362         assertEquals(false, r.incomplete);
     362        assertEquals(false, r.isIncomplete());
    363363        referringRelationsIds.add(r.getId());
    364364        r = lookupRelation(referers, 9);
    365365        assertNotNull(r);
    366         assertEquals(false, r.incomplete);
     366        assertEquals(false, r.isIncomplete());
    367367        referringRelationsIds.add(r.getId());
    368368
    369369        for (Relation r1 : referers.getRelations()) {
    370370            if (!referringRelationsIds.contains(r1.getId())) {
    371                 assertEquals(true, r1.incomplete);
     371                assertEquals(true, r1.isIncomplete());
    372372            }
    373373        }
     
    401401        for (Way w1 : referers.getWays()) {
    402402            assertEquals(true, expectedWayIds.contains(w1.getId()));
    403             assertEquals(true, w1.incomplete);
     403            assertEquals(true, w1.isIncomplete());
    404404        }
    405405
     
    448448        r = lookupRelation(referers, 6);
    449449        assertNotNull(r);
    450         assertEquals(false, r.incomplete);
     450        assertEquals(false, r.isIncomplete());
    451451        referringRelationsIds.add(r.getId());
    452452        r = lookupRelation(referers, 7);
    453453        assertNotNull(r);
    454         assertEquals(false, r.incomplete);
     454        assertEquals(false, r.isIncomplete());
    455455        referringRelationsIds.add(r.getId());
    456456        r = lookupRelation(referers, 8);
    457457        assertNotNull(r);
    458         assertEquals(false, r.incomplete);
     458        assertEquals(false, r.isIncomplete());
    459459        referringRelationsIds.add(r.getId());
    460460        r = lookupRelation(referers, 9);
    461461        assertNotNull(r);
    462         assertEquals(false, r.incomplete);
     462        assertEquals(false, r.isIncomplete());
    463463        referringRelationsIds.add(r.getId());
    464464
     
    466466        //
    467467        for (Relation r1 : referers.getRelations()) {
    468             assertEquals(false, r1.incomplete);
     468            assertEquals(false, r1.isIncomplete());
    469469        }
    470470
     
    496496            Way w = (Way) referers.getPrimitiveById(id, OsmPrimitiveType.WAY);
    497497            assertNotNull(w);
    498             assertEquals(false, w.incomplete);
     498            assertEquals(false, w.isIncomplete());
    499499        }
    500500
Note: See TracChangeset for help on using the changeset viewer.