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

add more unit tests + fix some sonar issues

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

Legend:

Unmodified
Added
Removed
  • 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}
Note: See TracChangeset for help on using the changeset viewer.