Last change
on this file since 10977 was 10977, checked in by Don-vip, 8 years ago |
add/update unit tests, fix indentation
|
-
Property svn:eol-style
set to
native
|
File size:
1.1 KB
|
Rev | Line | |
---|
[9666] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
| 2 | package org.openstreetmap.josm.gui.preferences.imagery;
|
---|
| 3 |
|
---|
| 4 | import static org.junit.Assert.assertNotNull;
|
---|
| 5 |
|
---|
[10977] | 6 | import org.junit.Rule;
|
---|
[9666] | 7 | import org.junit.Test;
|
---|
| 8 | import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils;
|
---|
[10977] | 9 | import org.openstreetmap.josm.testutils.JOSMTestRules;
|
---|
[9666] | 10 |
|
---|
[10977] | 11 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
---|
| 12 |
|
---|
[9666] | 13 | /**
|
---|
| 14 | * Unit tests of {@link ImageryPreference} class.
|
---|
| 15 | */
|
---|
| 16 | public class ImageryPreferenceTest {
|
---|
| 17 |
|
---|
| 18 | /**
|
---|
[10977] | 19 | * Setup tests
|
---|
[9666] | 20 | */
|
---|
[10977] | 21 | @Rule
|
---|
| 22 | @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
|
---|
| 23 | public JOSMTestRules test = new JOSMTestRules().platform().commands();
|
---|
[9666] | 24 |
|
---|
| 25 | /**
|
---|
| 26 | * Unit test of {@link ImageryPreference#ImageryPreference}.
|
---|
| 27 | */
|
---|
| 28 | @Test
|
---|
[10378] | 29 | public void testImageryPreference() {
|
---|
[9666] | 30 | assertNotNull(new ImageryPreference.Factory().createPreferenceSetting());
|
---|
| 31 | }
|
---|
| 32 |
|
---|
| 33 | /**
|
---|
| 34 | * Unit test of {@link ImageryPreference#addGui}.
|
---|
| 35 | */
|
---|
| 36 | @Test
|
---|
| 37 | public void testAddGui() {
|
---|
[9973] | 38 | PreferencesTestUtils.doTestPreferenceSettingAddGui(new ImageryPreference.Factory(), null);
|
---|
[9666] | 39 | }
|
---|
| 40 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.