source: josm/trunk/test/unit/org/openstreetmap/josm/gui/preferences/advanced/AdvancedPreferenceTest.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: 795 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.preferences.advanced;
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 AdvancedPreference} class.
11 */
12class AdvancedPreferenceTest {
13 /**
14 * Unit test of {@link AdvancedPreference#AdvancedPreference}.
15 */
16 @Test
17 void testAdvancedPreference() {
18 assertNotNull(new AdvancedPreference.Factory().createPreferenceSetting());
19 }
20
21 /**
22 * Unit test of {@link AdvancedPreference#addGui}.
23 */
24 @Test
25 void testAddGui() {
26 PreferencesTestUtils.doTestPreferenceSettingAddGui(new AdvancedPreference.Factory(), null);
27 }
28}
Note: See TracBrowser for help on using the repository browser.