Add WindowMockers (now required due to a dependency from MapWithAIDownloadOptions)

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

Wyświetl plik

@ -26,6 +26,7 @@ import org.openstreetmap.josm.plugins.mapwithai.gui.preferences.MapWithAIPrefere
import org.openstreetmap.josm.plugins.mapwithai.testutils.MapWithAITestRules;
import org.openstreetmap.josm.spi.preferences.Config;
import org.openstreetmap.josm.testutils.JOSMTestRules;
import org.openstreetmap.josm.testutils.mockers.WindowMocker;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
@ -47,6 +48,7 @@ public class MapWithAIPluginTest {
*/
@Before
public void setUp() throws Exception {
new WindowMocker();
final InputStream in = new ByteArrayInputStream("".getBytes(StandardCharsets.UTF_8));
info = new PluginInformation(in, "MapWithAI", null);
info.localversion = VERSION;

Wyświetl plik

@ -26,6 +26,7 @@ import org.openstreetmap.josm.plugins.mapwithai.backend.MapWithAIPreferenceHelpe
import org.openstreetmap.josm.plugins.mapwithai.gui.download.MapWithAIDownloadReader.MapWithAIDownloadData;
import org.openstreetmap.josm.plugins.mapwithai.testutils.MapWithAITestRules;
import org.openstreetmap.josm.testutils.JOSMTestRules;
import org.openstreetmap.josm.testutils.mockers.WindowMocker;
import org.openstreetmap.josm.tools.ImageProvider;
public class MapWithAIDownloadReaderTest {
@ -44,6 +45,7 @@ public class MapWithAIDownloadReaderTest {
@Test
public void testDoDownload() {
new WindowMocker();
MapWithAIDownloadReader reader = new MapWithAIDownloadReader();
// TODO revert commit that adds these lines as soon as MapWithAI fixes timeout
// issue see