source: josm/trunk/test/unit/org/openstreetmap/josm/gui/preferences/server/ProxyPreferenceTest.java@ 17192

Last change on this file since 17192 was 17179, checked in by simon04, 4 years ago

see #7548 - Re-organize the preference dialog (fix unit tests)

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.preferences.server;
3
4import static org.junit.Assert.assertNotNull;
5
6import org.junit.Rule;
7import org.junit.Test;
8import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils;
9import org.openstreetmap.josm.testutils.JOSMTestRules;
10
11import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
12
13/**
14 * Unit tests of {@link ProxyPreference} class.
15 */
16public class ProxyPreferenceTest {
17
18 /**
19 * Setup tests
20 */
21 @Rule
22 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
23 public JOSMTestRules test = new JOSMTestRules().preferences();
24
25 /**
26 * Unit test of {@link ProxyPreference#ProxyPreference}.
27 */
28 @Test
29 public void testProxyPreference() {
30 assertNotNull(new ProxyPreference.Factory().createPreferenceSetting());
31 }
32
33 /**
34 * Unit test of {@link ProxyPreference#addGui}.
35 */
36 @Test
37 public void testAddGui() {
38 PreferencesTestUtils.doTestPreferenceSettingAddGui(new ProxyPreference.Factory(), null);
39 }
40}
Note: See TracBrowser for help on using the repository browser.