Changeset 14437 in josm for trunk/test/unit


Ignore:
Timestamp:
2018-11-20T17:01:47+01:00 (6 years ago)
Author:
GerdP
Message:

fix #17010 - Validator creates multiple errors/warnings for same problem

The fix reduces the noise.

  • Don't check roles again in RelationChecker when MultipolygonTest is enabled
  • remove special code that just searches for an outer way
  • correct checkMembersAndRoles, it did not find wrong roles for way members
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/RelationCheckerTest.java

    r12002 r14437  
    4747    @Test
    4848    public void testUnknownType() {
    49         List<TestError> errors = testRelation(createRelation("type=foobar"));
     49        Relation r = createRelation("type=foobar");
     50        r.addMember(new RelationMember("", new Way()));
     51        List<TestError> errors = testRelation(r);
     52
    5053        assertTrue(errors.size() >= 1);
    5154        assertEquals("Relation type is unknown", errors.get(0).getMessage());
Note: See TracChangeset for help on using the changeset viewer.