Changeset 16652 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
r16651 r16652 459 459 */ 460 460 public static List<Relation> checkAddMember(Relation parent, Relation child) { 461 if (parent == null || child == null || child.isIncomplete())461 if (parent == null || child == null) 462 462 return Collections.emptyList(); 463 463 RelationChecker test = new RelationChecker(); -
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditorTest.java
r14385 r16652 91 91 Relation r = TestUtils.addFakeDataSet(new Relation(1)); 92 92 assertNull(GenericRelationEditor.addPrimitivesToRelation(r, Collections.<OsmPrimitive>emptyList())); 93 94 93 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 " 96 95 + "and is therefore discouraged.<br>Skipping relation 'incomplete'.</html>", 97 96 JOptionPane.OK_OPTION
Note:
See TracChangeset
for help on using the changeset viewer.