Changeset 16159 in josm for trunk/test/unit/org/openstreetmap/josm/gui/io
- Timestamp:
- 2020-03-17T20:09:38+01:00 (4 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/gui/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/io/AsynchronousUploadPrimitivesTaskTest.java
r14187 r16159 2 2 package org.openstreetmap.josm.gui.io; 3 3 4 import java.util.Collections; 4 5 import java.util.Optional; 5 6 … … 22 23 import org.openstreetmap.josm.testutils.JOSMTestRules; 23 24 import org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker; 24 25 import com.google.common.collect.ImmutableMap;26 25 27 26 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; … … 90 89 public void testSingleUploadInstance() { 91 90 TestUtils.assumeWorkingJMockit(); 92 new JOptionPaneSimpleMocker( ImmutableMap.of(91 new JOptionPaneSimpleMocker(Collections.singletonMap( 93 92 "A background upload is already in progress. Kindly wait for it to finish before uploading new changes", JOptionPane.OK_OPTION 94 93 )); -
trunk/test/unit/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTaskTest.java
r14366 r16159 9 9 import java.awt.GraphicsEnvironment; 10 10 import java.net.URL; 11 import java.util.Collections; 11 12 12 13 import javax.swing.JOptionPane; … … 22 23 import org.openstreetmap.josm.testutils.mockers.WindowMocker; 23 24 import org.openstreetmap.josm.tools.UserCancelException; 24 25 import com.google.common.collect.ImmutableMap;26 25 27 26 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; … … 80 79 final OAuthWizardMocker oaWizardMocker = new OAuthWizardMocker(); 81 80 final JOptionPaneSimpleMocker jopsMocker = new JOptionPaneSimpleMocker( 82 ImmutableMap.<String, Object>of(81 Collections.singletonMap( 83 82 "<html>Could not retrieve the list of your open changesets because<br>JOSM does not know " 84 83 + "your identity.<br>You have either chosen to work anonymously or you are not " … … 113 112 final OAuthWizardMocker oaWizardMocker = new OAuthWizardMocker(); 114 113 final JOptionPaneSimpleMocker jopsMocker = new JOptionPaneSimpleMocker( 115 ImmutableMap.<String, Object>of("There are no open changesets", JOptionPane.OK_OPTION)114 Collections.singletonMap("There are no open changesets", JOptionPane.OK_OPTION) 116 115 ); 117 116
Note:
See TracChangeset
for help on using the changeset viewer.