Index: trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java	(revision 12756)
+++ trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java	(revision 12757)
@@ -14,4 +14,6 @@
 import java.util.TimeZone;
 
+import org.openstreetmap.josm.actions.DeleteAction;
+import org.openstreetmap.josm.command.DeleteCommand;
 import org.openstreetmap.josm.data.projection.Projections;
 import org.openstreetmap.josm.gui.MainApplication;
@@ -125,4 +127,7 @@
         }
 
+        // Setup callbacks
+        DeleteCommand.setDeletionCallback(DeleteAction::checkAndConfirmOutlyingDelete);
+
         if (createGui) {
             GuiHelper.runInEDTAndWaitWithException(new Runnable() {
