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/server
Files:
4 edited

Legend:

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