source: josm/trunk/test/unit/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreferenceTest.java@ 9624

Last change on this file since 9624 was 9624, checked in by Don-vip, 8 years ago

update/fix preferences unit tests, based on work from Mapillary plugin unit tests

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