Changeset 14052 in josm for trunk/test/unit/org/openstreetmap/josm/gui/io
- Timestamp:
- 2018-07-26T22:01:31+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/io/AsynchronousUploadPrimitivesTaskTest.java
r13219 r14052 3 3 4 4 import java.util.Optional; 5 6 import javax.swing.JOptionPane; 5 7 6 8 import org.junit.After; … … 18 20 import org.openstreetmap.josm.io.UploadStrategySpecification; 19 21 import org.openstreetmap.josm.testutils.JOSMTestRules; 22 import org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker; 23 24 import com.google.common.collect.ImmutableMap; 20 25 21 26 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; … … 37 42 @Rule 38 43 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 39 public JOSMTestRules test = new JOSMTestRules() ;44 public JOSMTestRules test = new JOSMTestRules().assertionsInEDT(); 40 45 46 /** 47 * Bootstrap. 48 */ 41 49 @Before 42 50 public void bootStrap() { 51 new JOptionPaneSimpleMocker(ImmutableMap.of( 52 "A background upload is already in progress. Kindly wait for it to finish before uploading new changes", JOptionPane.OK_OPTION 53 )); 54 43 55 DataSet dataSet = new DataSet(); 44 56 Node node1 = new Node(); … … 60 72 } 61 73 74 /** 75 * Tear down. 76 */ 62 77 @After 63 78 public void tearDown() { … … 70 85 } 71 86 87 /** 88 * Test single upload instance. 89 */ 72 90 @Test 73 91 public void testSingleUploadInstance() {
Note:
See TracChangeset
for help on using the changeset viewer.