// License: GPL. For details, see LICENSE file. package org.openstreetmap.josm.gui.preferences.server; import static org.junit.Assert.assertNotNull; import org.junit.Rule; import org.junit.Test; import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; import org.openstreetmap.josm.testutils.JOSMTestRules; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; /** * Unit tests of {@link ProxyPreference} class. */ public class ProxyPreferenceTest { /** * Setup tests */ @Rule @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") public JOSMTestRules test = new JOSMTestRules().preferences().platform(); /** * Unit test of {@link ProxyPreference#ProxyPreference}. */ @Test public void testProxyPreference() { assertNotNull(new ProxyPreference.Factory().createPreferenceSetting()); } /** * Unit test of {@link ProxyPreference#addGui}. */ @Test public void testAddGui() { PreferencesTestUtils.doTestPreferenceSettingAddGui(new ProxyPreference.Factory(), ServerAccessPreference.class); } }