Changeset 9622 in josm for trunk/test


Ignore:
Timestamp:
2016-01-25T01:18:18+01:00 (4 years ago)
Author:
Don-vip
Message:

add more unit tests + fix some sonar issues

Location:
trunk/test/unit/org/openstreetmap/josm/gui/preferences
Files:
21 edited

Legend:

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

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new AdvancedPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link AdvancedPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new AdvancedPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/audio/AudioPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new AudioPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link AudioPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new AudioPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/display/ColorPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new ColorPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link ColorPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new ColorPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/display/DisplayPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new DisplayPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link DisplayPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new DisplayPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/display/DrawingPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new DrawingPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link DrawingPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new DrawingPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/display/LafPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new LafPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link LafPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new LafPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/display/LanguagePreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new LanguagePreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link LanguagePreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new LanguagePreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new ImageryPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link ImageryPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new ImageryPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/BackupPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new BackupPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link BackupPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new BackupPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/MapPaintPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new MapPaintPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link MapPaintPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new MapPaintPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/MapPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new MapPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link MapPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new MapPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new TaggingPresetPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link TaggingPresetPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new TaggingPresetPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new ProjectionPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link ProjectionPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new ProjectionPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/remotecontrol/RemoteControlPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new RemoteControlPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link RemoteControlPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new RemoteControlPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/server/AuthenticationPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new AuthenticationPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link AuthenticationPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new AuthenticationPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/server/OverpassServerPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new OverpassServerPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link OverpassServerPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new OverpassServerPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/server/ProxyPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new ProxyPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link ProxyPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new ProxyPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/server/ServerAccessPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new ServerAccessPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link ServerAccessPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new ServerAccessPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/shortcut/ShortcutPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new ShortcutPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link ShortcutPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new ShortcutPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/validator/ValidatorPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new ValidatorPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link ValidatorPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new ValidatorPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/validator/ValidatorTestsPreferenceTest.java

    r9585 r9622  
    77import org.junit.Test;
    88import org.openstreetmap.josm.JOSMFixture;
     9import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    910
    1011/**
     
    2829        assertNotNull(new ValidatorTestsPreference.Factory().createPreferenceSetting());
    2930    }
     31
     32    /**
     33     * Unit test of {@link ValidatorTestsPreference#addGui}.
     34     */
     35    @Test
     36    public void testAddGui() {
     37        new ValidatorTestsPreference.Factory().createPreferenceSetting().addGui(new PreferenceTabbedPane());
     38    }
    3039}
Note: See TracChangeset for help on using the changeset viewer.