Fix a test that has issues if other tests have added urls

Signed-off-by: Taylor Smock <taylor.smock@kaart.com>
pull/1/head
Taylor Smock 2020-05-28 12:45:09 -06:00
rodzic 0510b11d77
commit 67f408476a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 625F6A74A3E4311A
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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());