Changeset 13765 in josm for trunk/test


Ignore:
Timestamp:
2018-05-14T03:49:36+02:00 (14 months ago)
Author:
Don-vip
Message:

fix unit tests, PMD violation

File:
1 edited

Legend:

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

    r11324 r13765  
    4343        List<Relation> allRelations = new ArrayList<>(ds.getRelations());
    4444
    45         QuadBuckets<Node> nodes = Reflection.field("nodes").ofType(new TypeRef<QuadBuckets<Node>>() {}).in(ds).get();
    46         QuadBuckets<Way> ways = Reflection.field("ways").ofType(new TypeRef<QuadBuckets<Way>>() {}).in(ds).get();
    47         Collection<Relation> relations = Reflection.field("relations").ofType(new TypeRef<Collection<Relation>>() {}).in(ds).get();
     45        QuadBucketPrimitiveStore<Node, Way, Relation> s = Reflection.field("store").ofType(
     46                new TypeRef<QuadBucketPrimitiveStore<Node, Way, Relation>>() {}).in(ds).get();
     47        QuadBuckets<Node> nodes = Reflection.field("nodes").ofType(new TypeRef<QuadBuckets<Node>>() {}).in(s).get();
     48        QuadBuckets<Way> ways = Reflection.field("ways").ofType(new TypeRef<QuadBuckets<Way>>() {}).in(s).get();
     49        Collection<Relation> relations = Reflection.field("relations").ofType(new TypeRef<Collection<Relation>>() {}).in(s).get();
    4850
    4951        int expectedCount = allNodes.size();
Note: See TracChangeset for help on using the changeset viewer.