source: josm/trunk/test/unit/org/openstreetmap/josm/gui/preferences/display/ColorPreferenceTest.java

Last change on this file was 18853, checked in by taylor.smock, 7 months ago

See #16567: Update to JUnit 5

This removes new JOSMTestRules() with no additional setup and most
JOSMFixture calls.

Removing the bare JOSMTestRules speeds up the test suite since there are two
fewer System.gc() calls per test.

  • Property svn:eol-style set to native
File size: 770 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.preferences.display;
3
4import static org.junit.jupiter.api.Assertions.assertNotNull;
5
6import org.junit.jupiter.api.Test;
7import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils;
8
9/**
10 * Unit tests of {@link ColorPreference} class.
11 */
12class ColorPreferenceTest {
13 /**
14 * Unit test of {@link ColorPreference#ColorPreference}.
15 */
16 @Test
17 void testColorPreference() {
18 assertNotNull(new ColorPreference.Factory().createPreferenceSetting());
19 }
20
21 /**
22 * Unit test of {@link ColorPreference#addGui}.
23 */
24 @Test
25 void testAddGui() {
26 PreferencesTestUtils.doTestPreferenceSettingAddGui(new ColorPreference.Factory(), null);
27 }
28}
Note: See TracBrowser for help on using the repository browser.