Ignore:
Timestamp:
2020-03-17T20:09:38+01:00 (4 years ago)
Author:
simon04
Message:

see #18948 - Use Collections.singletonMap instead of ImmutableMap.of

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  
    22package org.openstreetmap.josm.gui.io;
    33
     4import java.util.Collections;
    45import java.util.Optional;
    56
     
    2223import org.openstreetmap.josm.testutils.JOSMTestRules;
    2324import org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker;
    24 
    25 import com.google.common.collect.ImmutableMap;
    2625
    2726import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     
    9089    public void testSingleUploadInstance() {
    9190        TestUtils.assumeWorkingJMockit();
    92         new JOptionPaneSimpleMocker(ImmutableMap.of(
     91        new JOptionPaneSimpleMocker(Collections.singletonMap(
    9392                "A background upload is already in progress. Kindly wait for it to finish before uploading new changes", JOptionPane.OK_OPTION
    9493            ));
  • trunk/test/unit/org/openstreetmap/josm/gui/io/DownloadOpenChangesetsTaskTest.java

    r14366 r16159  
    99import java.awt.GraphicsEnvironment;
    1010import java.net.URL;
     11import java.util.Collections;
    1112
    1213import javax.swing.JOptionPane;
     
    2223import org.openstreetmap.josm.testutils.mockers.WindowMocker;
    2324import org.openstreetmap.josm.tools.UserCancelException;
    24 
    25 import com.google.common.collect.ImmutableMap;
    2625
    2726import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     
    8079        final OAuthWizardMocker oaWizardMocker = new OAuthWizardMocker();
    8180        final JOptionPaneSimpleMocker jopsMocker = new JOptionPaneSimpleMocker(
    82             ImmutableMap.<String, Object>of(
     81            Collections.singletonMap(
    8382                "<html>Could not retrieve the list of your open changesets because<br>JOSM does not know "
    8483                + "your identity.<br>You have either chosen to work anonymously or you are not "
     
    113112        final OAuthWizardMocker oaWizardMocker = new OAuthWizardMocker();
    114113        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)
    116115        );
    117116
Note: See TracChangeset for help on using the changeset viewer.