source: josm/trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/MapPaintPreferenceTest.java@ 17275

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

see #16567 - upgrade almost all tests to JUnit 5, except those depending on WiremockRule

See https://github.com/tomakehurst/wiremock/issues/684

  • Property svn:eol-style set to native
File size: 1.0 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.preferences.map;
3
4import static org.junit.jupiter.api.Assertions.assertNotNull;
5
6import org.junit.jupiter.api.BeforeAll;
7import org.junit.jupiter.api.Test;
8import org.openstreetmap.josm.JOSMFixture;
9import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils;
10
11/**
12 * Unit tests of {@link MapPaintPreference} class.
13 */
14class MapPaintPreferenceTest {
15
16 /**
17 * Setup test.
18 */
19 @BeforeAll
20 public static void setUpBeforeClass() {
21 JOSMFixture.createUnitTestFixture().init();
22 }
23
24 /**
25 * Unit test of {@link MapPaintPreference#MapPaintPreference}.
26 */
27 @Test
28 void testMapPaintPreference() {
29 assertNotNull(new MapPaintPreference.Factory().createPreferenceSetting());
30 }
31
32 /**
33 * Unit test of {@link MapPaintPreference#addGui}.
34 */
35 @Test
36 void testAddGui() {
37 PreferencesTestUtils.doTestPreferenceSettingAddGui(new MapPaintPreference.Factory(), null);
38 }
39}
Note: See TracBrowser for help on using the repository browser.