Changeset 1938 in josm for trunk/test/functional/org
- Timestamp:
- 2009-08-08T22:39:04+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java
r1928 r1938 377 377 Set<Long> expectedWayIds = new HashSet<Long>(); 378 378 for (RelationMember m : lookupRelation(ds, 6).getMembers()) { 379 if (m. member instanceof Way) {380 expectedWayIds.add(m. member.id);379 if (m.isWay()) { 380 expectedWayIds.add(m.getMember().id); 381 381 } 382 382 } 383 383 for (RelationMember m : lookupRelation(ds, 7).getMembers()) { 384 if (m. member instanceof Way) {385 expectedWayIds.add(m. member.id);384 if (m.isWay()) { 385 expectedWayIds.add(m.getMember().id); 386 386 } 387 387 } 388 388 for (RelationMember m : lookupRelation(ds, 8).getMembers()) { 389 if (m. member instanceof Way) {390 expectedWayIds.add(m. member.id);389 if (m.isWay()) { 390 expectedWayIds.add(m.getMember().id); 391 391 } 392 392 } 393 393 for (RelationMember m : lookupRelation(ds, 9).getMembers()) { 394 if (m. member instanceof Way) {395 expectedWayIds.add(m. member.id);394 if (m.isWay()) { 395 expectedWayIds.add(m.getMember().id); 396 396 } 397 397 } … … 421 421 if (r == null) return ret; 422 422 for (RelationMember m: r.getMembers()) { 423 if (m. member instanceof Node) {424 ret.add(m. member.id);425 } else if (m. member instanceof Way) {426 ret.addAll(getNodeIdsInWay( (Way)m.member));427 } else if (m. member instanceof Relation) {428 ret.addAll(getNodeIdsInRelation( (Relation)m.member));423 if (m.isNode()) { 424 ret.add(m.getMember().id); 425 } else if (m.isWay()) { 426 ret.addAll(getNodeIdsInWay(m.getWay())); 427 } else if (m.isRelation()) { 428 ret.addAll(getNodeIdsInRelation(m.getRelation())); 429 429 } 430 430 } … … 473 473 Set<Long> expectedWayIds = new HashSet<Long>(); 474 474 for (RelationMember m : lookupRelation(ds, 6).getMembers()) { 475 if (m. member instanceof Way) {476 expectedWayIds.add(m. member.id);475 if (m.isWay()) { 476 expectedWayIds.add(m.getMember().id); 477 477 } 478 478 } 479 479 for (RelationMember m : lookupRelation(ds, 7).getMembers()) { 480 if (m. member instanceof Way) {481 expectedWayIds.add(m. member.id);480 if (m.isWay()) { 481 expectedWayIds.add(m.getMember().id); 482 482 } 483 483 } 484 484 for (RelationMember m : lookupRelation(ds, 8).getMembers()) { 485 if (m. member instanceof Way) {486 expectedWayIds.add(m. member.id);485 if (m.isWay()) { 486 expectedWayIds.add(m.getMember().id); 487 487 } 488 488 } 489 489 for (RelationMember m : lookupRelation(ds, 9).getMembers()) { 490 if (m. member instanceof Way) {491 expectedWayIds.add(m. member.id);490 if (m.isWay()) { 491 expectedWayIds.add(m.getMember().id); 492 492 } 493 493 }
Note:
See TracChangeset
for help on using the changeset viewer.