Ignore:
Timestamp:
2020-03-17T20:09:41+01:00 (14 months ago)
Author:
simon04
Message:

see #18948 - Get rid of remaining ImmutableMap.of

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/advanced/PreferencesTableTest.java

    r14081 r16160  
    2020import org.openstreetmap.josm.testutils.mockers.ExtendedDialogMocker;
    2121import org.openstreetmap.josm.testutils.mockers.JOptionPaneSimpleMocker;
    22 
    23 import com.google.common.collect.ImmutableMap;
    2422
    2523import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     
    5250    public void testPreferencesTable() {
    5351        TestUtils.assumeWorkingJMockit();
    54         new JOptionPaneSimpleMocker(ImmutableMap.of(
    55             "Please select the row to edit.", JOptionPane.OK_OPTION,
    56             "Please select the row to delete.", JOptionPane.OK_OPTION
    57         ));
     52        final JOptionPaneSimpleMocker mocker = new JOptionPaneSimpleMocker();
     53        mocker.getMockResultMap().put("Please select the row to edit.", JOptionPane.OK_OPTION);
     54        mocker.getMockResultMap().put("Please select the row to delete.", JOptionPane.OK_OPTION);
    5855        new ExtendedDialogMocker() {
    5956            @Override
Note: See TracChangeset for help on using the changeset viewer.