// 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 OverpassServerPreference} class.
*/
public class OverpassServerPreferenceTest {
/**
* Setup tests
*/
@Rule
@SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
public JOSMTestRules test = new JOSMTestRules().preferences().platform();
/**
* Unit test of {@link OverpassServerPreference#OverpassServerPreference}.
*/
@Test
public void testOverpassServerPreference() {
assertNotNull(new OverpassServerPreference.Factory().createPreferenceSetting());
}
/**
* Unit test of {@link OverpassServerPreference#addGui}.
*/
@Test
public void testAddGui() {
PreferencesTestUtils.doTestPreferenceSettingAddGui(new OverpassServerPreference.Factory(), ServerAccessPreference.class);
}
}