kopia lustrzana https://github.com/JOSM/MapWithAI
Add WindowMockers (now required due to a dependency from MapWithAIDownloadOptions)
Signed-off-by: Taylor Smock <taylor.smock@kaart.com>pull/1/head
rodzic
e1acbc7ea3
commit
25c378ea34
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue