Changeset 16652 in josm


Ignore:
Timestamp:
2020-06-16T12:02:08+02:00 (3 weeks ago)
Author:
GerdP
Message:

see #19312: fix unit tests

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java

    r16651 r16652  
    459459     */
    460460    public static List<Relation> checkAddMember(Relation parent, Relation child) {
    461         if (parent == null || child == null || child.isIncomplete())
     461        if (parent == null || child == null)
    462462            return Collections.emptyList();
    463463        RelationChecker test = new RelationChecker();
  • trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditorTest.java

    r14385 r16652  
    9191        Relation r = TestUtils.addFakeDataSet(new Relation(1));
    9292        assertNull(GenericRelationEditor.addPrimitivesToRelation(r, Collections.<OsmPrimitive>emptyList()));
    93 
    9493        jopsMocker.getMockResultMap().put(
    95             "<html>You are trying to add a relation to itself.<br><br>This creates circular references "
     94            "<html>You are trying to add a relation to itself.<br><br>This generates a circular dependency of parent/child elements "
    9695            + "and is therefore discouraged.<br>Skipping relation 'incomplete'.</html>",
    9796            JOptionPane.OK_OPTION
Note: See TracChangeset for help on using the changeset viewer.