- Timestamp:
- 2018-08-28T00:35:09+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/io/AsynchronousUploadPrimitivesTaskTest.java
r14084 r14187 50 50 @Before 51 51 public void bootStrap() { 52 new JOptionPaneSimpleMocker(ImmutableMap.of(53 "A background upload is already in progress. Kindly wait for it to finish before uploading new changes", JOptionPane.OK_OPTION54 ));55 56 52 DataSet dataSet = new DataSet(); 57 53 Node node1 = new Node(); … … 82 78 strategy = null; 83 79 changeset = null; 84 uploadPrimitivesTask.cancel(); 80 if (uploadPrimitivesTask != null) { 81 uploadPrimitivesTask.cancel(); 82 } 85 83 uploadPrimitivesTask = null; 86 84 } … … 92 90 public void testSingleUploadInstance() { 93 91 TestUtils.assumeWorkingJMockit(); 92 new JOptionPaneSimpleMocker(ImmutableMap.of( 93 "A background upload is already in progress. Kindly wait for it to finish before uploading new changes", JOptionPane.OK_OPTION 94 )); 94 95 Optional<AsynchronousUploadPrimitivesTask> task = AsynchronousUploadPrimitivesTask. 95 96 createAsynchronousUploadTask(strategy, layer, toUpload, changeset);
Note:
See TracChangeset
for help on using the changeset viewer.