Changeset 14302 in josm for trunk/test


Ignore:
Timestamp:
2018-10-06T23:29:06+02:00 (14 months ago)
Author:
Don-vip
Message:

see #16781 - fix more typos using https://github.com/vlajos/misspell-fixer

File:
1 edited

Legend:

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

    r10736 r14302  
    4444
    4545    private void assertTagCounts(TagCollection collection, int a, int b, int c, int d) {
    46         assertEquals(a, collection.getTagOccurence(tagA));
    47         assertEquals(b, collection.getTagOccurence(tagB));
    48         assertEquals(c, collection.getTagOccurence(tagC));
    49         assertEquals(d, collection.getTagOccurence(tagD));
     46        assertEquals(a, collection.getTagOccurrence(tagA));
     47        assertEquals(b, collection.getTagOccurrence(tagB));
     48        assertEquals(c, collection.getTagOccurrence(tagC));
     49        assertEquals(d, collection.getTagOccurrence(tagD));
    5050    }
    5151
     
    9292    public void testUnionOfAllPrimitivesCollectionOfQextendsTagged() {
    9393        TagCollection c = TagCollection.unionOfAllPrimitives(Arrays.asList(tagA));
    94         assertEquals(1, c.getTagOccurence(tagA));
     94        assertEquals(1, c.getTagOccurrence(tagA));
    9595
    9696        TagCollection d = TagCollection.unionOfAllPrimitives(Arrays.asList(tagA, tagC));
     
    187187    public void testGetTagCount() {
    188188        TagCollection c = new TagCollection(Arrays.asList(tagA, tagC, tagC));
    189         assertEquals(2, c.getTagOccurence(tagC));
    190         assertEquals(0, c.getTagOccurence(tagB));
    191         assertEquals(0, c.getTagOccurence(tagNullKey));
    192         assertEquals(0, c.getTagOccurence(tagNullValue));
     189        assertEquals(2, c.getTagOccurrence(tagC));
     190        assertEquals(0, c.getTagOccurrence(tagB));
     191        assertEquals(0, c.getTagOccurrence(tagNullKey));
     192        assertEquals(0, c.getTagOccurrence(tagNullValue));
    193193    }
    194194
     
    415415        TagCollection collection = d.getTagsFor("k");
    416416        assertTagCounts(collection, 1, 1, 0, 0);
    417         assertEquals(1, collection.getTagOccurence(tagEmpty));
     417        assertEquals(1, collection.getTagOccurrence(tagEmpty));
    418418    }
    419419
     
    426426        TagCollection collection = d.getTagsFor(Arrays.asList("k", "k2"));
    427427        assertTagCounts(collection, 1, 1, 1, 0);
    428         assertEquals(1, collection.getTagOccurence(tagEmpty));
     428        assertEquals(1, collection.getTagOccurrence(tagEmpty));
    429429    }
    430430
     
    628628        TagCollection c = c1.intersect(c2);
    629629        assertEquals(2, c.getKeys().size());
    630         assertEquals(1, c.getTagOccurence(tagA));
    631         assertEquals(1, c.getTagOccurence(tagD));
     630        assertEquals(1, c.getTagOccurrence(tagA));
     631        assertEquals(1, c.getTagOccurrence(tagD));
    632632    }
    633633
     
    641641        TagCollection c = c1.minus(c2);
    642642        assertEquals(2, c.getKeys().size());
    643         assertEquals(1, c.getTagOccurence(tagC));
    644         assertEquals(1, c.getTagOccurence(tagEmpty));
     643        assertEquals(1, c.getTagOccurrence(tagC));
     644        assertEquals(1, c.getTagOccurrence(tagEmpty));
    645645    }
    646646
     
    653653        TagCollection c2 = new TagCollection(Arrays.asList(tagA, tagB, tagD));
    654654        TagCollection c = c1.union(c2);
    655         assertEquals(2, c.getTagOccurence(tagA));
    656         assertEquals(1, c.getTagOccurence(tagB));
    657         assertEquals(1, c.getTagOccurence(tagC));
    658         assertEquals(2, c.getTagOccurence(tagD));
    659         assertEquals(1, c.getTagOccurence(tagEmpty));
     655        assertEquals(2, c.getTagOccurrence(tagA));
     656        assertEquals(1, c.getTagOccurrence(tagB));
     657        assertEquals(1, c.getTagOccurrence(tagC));
     658        assertEquals(2, c.getTagOccurrence(tagD));
     659        assertEquals(1, c.getTagOccurrence(tagEmpty));
    660660    }
    661661
     
    669669        TagCollection c = c1.emptyTagsForKeysMissingIn(c2);
    670670        assertEquals(2, c.getKeys().size());
    671         assertEquals(1, c.getTagOccurence(new Tag(tagC.getKey(), "")));
    672         assertEquals(1, c.getTagOccurence(tagEmpty));
     671        assertEquals(1, c.getTagOccurrence(new Tag(tagC.getKey(), "")));
     672        assertEquals(1, c.getTagOccurrence(tagEmpty));
    673673    }
    674674
Note: See TracChangeset for help on using the changeset viewer.