Changeset 34583 in osm for applications
- Timestamp:
- 2018-08-19T22:01:26+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/MicrosoftStreetside/test/unit/org/openstreetmap/josm/plugins/streetside/utils/PluginStateTest.java
r34577 r34583 4 4 import static org.junit.Assert.assertEquals; 5 5 6 import javax.swing.JOptionPane; 7 6 8 import org.junit.Test; 9 import org.openstreetmap.josm.TestUtils; 10 import org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker; 7 11 8 12 /** … … 35 39 @Test 36 40 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 ); 37 47 assertEquals(false, PluginState.isUploading()); 38 48 PluginState.addImagesToUpload(2);
Note:
See TracChangeset
for help on using the changeset viewer.