Changeset 14217 in josm for trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/AddNodeHandlerTest.java
- Timestamp:
- 2018-09-02T18:59:44+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/handler/AddNodeHandlerTest.java
r12636 r14217 29 29 @Rule 30 30 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 31 public JOSMTestRules test = new JOSMTestRules() ;31 public JOSMTestRules test = new JOSMTestRules().main().assertionsInEDT().projection(); 32 32 33 33 private static AddNodeHandler newHandler(String url) throws RequestHandlerBadRequestException { … … 58 58 thrown.expectMessage("NumberFormatException (empty String)"); 59 59 OsmDataLayer layer = new OsmDataLayer(new DataSet(), "", null); 60 try { 61 MainApplication.getLayerManager().addLayer(layer); 62 newHandler(null).handle(); 63 } finally { 64 MainApplication.getLayerManager().removeLayer(layer); 65 } 60 MainApplication.getLayerManager().addLayer(layer); 61 newHandler(null).handle(); 66 62 } 67 63 … … 95 91 public void testNominalRequest() throws Exception { 96 92 OsmDataLayer layer = new OsmDataLayer(new DataSet(), "", null); 97 try { 98 MainApplication.getLayerManager().addLayer(layer); 99 newHandler("https://localhost?lat=0&lon=0").handle(); 100 } finally { 101 MainApplication.getLayerManager().removeLayer(layer); 102 } 93 MainApplication.getLayerManager().addLayer(layer); 94 newHandler("https://localhost?lat=0&lon=0").handle(); 103 95 } 104 96 }
Note:
See TracChangeset
for help on using the changeset viewer.