kopia lustrzana https://github.com/JOSM/MapWithAI
Fix a test that has issues if other tests have added urls
Signed-off-by: Taylor Smock <taylor.smock@kaart.com>pull/1/head
rodzic
0510b11d77
commit
67f408476a
|
@ -29,6 +29,7 @@ import org.openstreetmap.josm.gui.layer.OsmDataLayer;
|
|||
import org.openstreetmap.josm.plugins.PluginException;
|
||||
import org.openstreetmap.josm.plugins.PluginInformation;
|
||||
import org.openstreetmap.josm.plugins.mapwithai.data.mapwithai.MapWithAIInfo;
|
||||
import org.openstreetmap.josm.plugins.mapwithai.data.mapwithai.MapWithAILayerInfo;
|
||||
import org.openstreetmap.josm.testutils.JOSMTestRules;
|
||||
|
||||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||
|
@ -152,6 +153,7 @@ public class MapWithAIUploadHookTest {
|
|||
|
||||
@Test
|
||||
public void testEmptyUrl() {
|
||||
MapWithAILayerInfo.getInstance().clear();
|
||||
// While this should never happen without significant effort on the part of the
|
||||
// user, we still handle this case.
|
||||
aiLayer.getDataSet().addSelected(way2.firstNode());
|
||||
|
|
Ładowanie…
Reference in New Issue