Changeset 16407 in josm for trunk/test/unit


Ignore:
Timestamp:
2020-05-13T15:24:14+02:00 (5 years ago)
Author:
GerdP
Message:

fix #18915: "Precondition violation" not fixable from within JOSM

  • correct handling of precondition failure responses that contain the word requires so that the correct objects are downloaded. The parents are needed, not the childern.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/ExceptionUtilTest.java

    r15085 r16407  
    436436                ExceptionUtil.explainPreconditionFailed(new OsmApiException(code, "Way 1 is still used by relation 1", "")));
    437437
    438         assertEquals("<html><strong>Failed</strong> to delete <strong>way 1</strong>. It is still referred to by nodes [1, 2].<br>"+
    439                 "Please load the nodes, remove the reference to the way, and upload again.</html>",
     438        assertEquals("<html><strong>Failed</strong> to upload <strong>way 1</strong>. It refers to deleted nodes [1, 2].<br>"+
     439                "Please load the nodes, remove the reference in the way, and upload again.</html>",
    440440                ExceptionUtil.explainPreconditionFailed(new OsmApiException(code, "Way 1 requires the nodes with id in 1,2", "")));
    441441    }
Note: See TracChangeset for help on using the changeset viewer.