Ignore:
Timestamp:
2017-09-14T00:22:37+02:00 (4 years ago)
Author:
bastiK
Message:

see #15229 - use Config in tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/audio/AudioPreferenceTest.java

    r12842 r12849  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
    9 import org.openstreetmap.josm.Main;
    109import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils;
     10import org.openstreetmap.josm.spi.preferences.Config;
    1111
    1212/**
     
    3636    @Test
    3737    public void testAddGui() {
    38         Main.pref.putBoolean("audio.menuinvisible", true);
     38        Config.getPref().putBoolean("audio.menuinvisible", true);
    3939        PreferencesTestUtils.doTestPreferenceSettingAddGui(new AudioPreference.Factory(), null);
    40         Main.pref.putBoolean("audio.menuinvisible", false);
     40        Config.getPref().putBoolean("audio.menuinvisible", false);
    4141        PreferencesTestUtils.doTestPreferenceSettingAddGui(new AudioPreference.Factory(), null);
    4242    }
Note: See TracChangeset for help on using the changeset viewer.