Changeset 12751 in josm


Ignore:
Timestamp:
2017-09-06T02:58:32+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15229 - see #15182 - see #13036 - update unit tests and groovy script

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/TagInfoExtract.groovy

    r11982 r12751  
    1717
    1818import org.openstreetmap.josm.Main
     19import org.openstreetmap.josm.actions.DeleteAction
     20import org.openstreetmap.josm.command.DeleteCommand
    1921import org.openstreetmap.josm.data.Version
    2022import org.openstreetmap.josm.data.coor.LatLon
     
    384386        tmpdir.toFile().deleteOnExit()
    385387        System.setProperty("josm.home", tmpdir.toString())
     388        DeleteCommand.setDeletionCallback(DeleteAction::checkAndConfirmOutlyingDelete)
    386389        Territories.initialize()
    387390        RightAndLefthandTraffic.initialize()
  • trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java

    r12750 r12751  
    1515import org.openstreetmap.josm.JOSMFixture;
    1616import org.openstreetmap.josm.Main;
     17import org.openstreetmap.josm.actions.DeleteAction;
     18import org.openstreetmap.josm.command.DeleteCommand;
    1719import org.openstreetmap.josm.data.UserIdentityManager;
    1820import org.openstreetmap.josm.data.osm.User;
     
    269271        UserIdentityManager.getInstance().setAnonymous();
    270272        User.clearUserMap();
     273        // Setup callbacks
     274        DeleteCommand.setDeletionCallback(DeleteAction::checkAndConfirmOutlyingDelete);
    271275
    272276        // Set up i18n
Note: See TracChangeset for help on using the changeset viewer.