Changeset 9624 in josm for trunk/test
- Timestamp:
- 2016-01-25T02:46:36+01:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/gui/preferences
- Files:
-
- 1 added
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/advanced/AdvancedPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new AdvancedPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new AdvancedPreference.Factory(), null); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/audio/AudioPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new AudioPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new AudioPreference.Factory(), null); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/display/ColorPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new ColorPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new ColorPreference.Factory(), DisplayPreference.class); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/display/DisplayPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new DisplayPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new DisplayPreference.Factory(), null); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/display/DrawingPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new DrawingPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new DrawingPreference.Factory(), DisplayPreference.class); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/display/LafPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new LafPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new LafPreference.Factory(), DisplayPreference.class); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/display/LanguagePreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new LanguagePreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new LanguagePreference.Factory(), DisplayPreference.class); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new ImageryPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new ImageryPreference.Factory(), null); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/BackupPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new BackupPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new BackupPreference.Factory(), MapPreference.class); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/MapPaintPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new MapPaintPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new MapPaintPreference.Factory(), MapPreference.class); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/MapPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new MapPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new MapPreference.Factory(), null); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new TaggingPresetPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new TaggingPresetPreference.Factory(), MapPreference.class); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferenceTest.java
r9621 r9624 14 14 import org.openstreetmap.josm.JOSMFixture; 15 15 import org.openstreetmap.josm.TestUtils; 16 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;16 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 17 17 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 18 18 import org.openstreetmap.josm.plugins.PluginDownloadTask; … … 89 89 @Test 90 90 public void testAddGui() { 91 new PluginPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());91 PreferencesTestUtils.testPreferenceSettingAddGui(new PluginPreference.Factory(), null); 92 92 } 93 93 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane; 9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 import org.openstreetmap.josm.gui.preferences.map.MapPreference; 10 11 11 12 /** … … 35 36 @Test 36 37 public void testAddGui() { 37 new ProjectionPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());38 PreferencesTestUtils.testPreferenceSettingAddGui(new ProjectionPreference.Factory(), MapPreference.class); 38 39 } 39 40 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/remotecontrol/RemoteControlPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new RemoteControlPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new RemoteControlPreference.Factory(), null); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/server/AuthenticationPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new AuthenticationPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new AuthenticationPreference.Factory(), ServerAccessPreference.class); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/server/OverpassServerPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new OverpassServerPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new OverpassServerPreference.Factory(), ServerAccessPreference.class); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/server/ProxyPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new ProxyPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new ProxyPreference.Factory(), ServerAccessPreference.class); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/server/ServerAccessPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new ServerAccessPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new ServerAccessPreference.Factory(), null); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/shortcut/ShortcutPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new ShortcutPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new ShortcutPreference.Factory(), null); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/validator/ValidatorPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new ValidatorPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new ValidatorPreference.Factory(), null); 38 38 } 39 39 } -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/validator/ValidatorTestsPreferenceTest.java
r9622 r9624 7 7 import org.junit.Test; 8 8 import org.openstreetmap.josm.JOSMFixture; 9 import org.openstreetmap.josm.gui.preferences.Preference TabbedPane;9 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; 10 10 11 11 /** … … 35 35 @Test 36 36 public void testAddGui() { 37 new ValidatorTestsPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());37 PreferencesTestUtils.testPreferenceSettingAddGui(new ValidatorTestsPreference.Factory(), ValidatorPreference.class); 38 38 } 39 39 }
Note:
See TracChangeset
for help on using the changeset viewer.