Changeset 34583 in osm for applications


Ignore:
Timestamp:
2018-08-19T22:01:26+02:00 (6 years ago)
Author:
donvip
Message:

fix unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/MicrosoftStreetside/test/unit/org/openstreetmap/josm/plugins/streetside/utils/PluginStateTest.java

    r34577 r34583  
    44import static org.junit.Assert.assertEquals;
    55
     6import javax.swing.JOptionPane;
     7
    68import org.junit.Test;
     9import org.openstreetmap.josm.TestUtils;
     10import org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker;
    711
    812/**
     
    3539  @Test
    3640  public void uploadTest() {
     41    TestUtils.assumeWorkingJMockit();
     42    JOptionPaneSimpleMocker jopsMocker = new JOptionPaneSimpleMocker();
     43    jopsMocker.getMockResultMap().put(
     44            "You have successfully uploaded 2 images to Bing.com",
     45            JOptionPane.OK_OPTION
     46        );
    3747    assertEquals(false, PluginState.isUploading());
    3848    PluginState.addImagesToUpload(2);
Note: See TracChangeset for help on using the changeset viewer.