Rev | Line | |
---|
[9666] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
| 2 | package org.openstreetmap.josm.gui.preferences.remotecontrol;
|
---|
| 3 |
|
---|
| 4 | import static org.junit.Assert.assertNotNull;
|
---|
| 5 |
|
---|
| 6 | import org.junit.BeforeClass;
|
---|
| 7 | import org.junit.Test;
|
---|
| 8 | import org.openstreetmap.josm.JOSMFixture;
|
---|
| 9 | import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils;
|
---|
| 10 |
|
---|
| 11 | /**
|
---|
| 12 | * Unit tests of {@link RemoteControlPreference} class.
|
---|
| 13 | */
|
---|
| 14 | public class RemoteControlPreferenceTest {
|
---|
| 15 |
|
---|
| 16 | /**
|
---|
| 17 | * Setup test.
|
---|
| 18 | */
|
---|
| 19 | @BeforeClass
|
---|
| 20 | public static void setUpBeforeClass() {
|
---|
| 21 | JOSMFixture.createUnitTestFixture().init();
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | /**
|
---|
| 25 | * Unit test of {@link RemoteControlPreference#RemoteControlPreference}.
|
---|
| 26 | */
|
---|
| 27 | @Test
|
---|
| 28 | public void testRemoteControlPreference() {
|
---|
| 29 | assertNotNull(new RemoteControlPreference.Factory().createPreferenceSetting());
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | /**
|
---|
| 33 | * Unit test of {@link RemoteControlPreference#addGui}.
|
---|
| 34 | */
|
---|
| 35 | @Test
|
---|
| 36 | public void testAddGui() {
|
---|
| 37 | PreferencesTestUtils.testPreferenceSettingAddGui(new RemoteControlPreference.Factory(), null);
|
---|
| 38 | }
|
---|
| 39 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.