Last change
on this file was 18037, checked in by Don-vip, 3 years ago |
fix #21064 - Add JUnit 5 extension for preferences (patch by taylor.smock)
|
-
Property svn:eol-style
set to
native
|
File size:
950 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.preferences.server;
|
---|
3 |
|
---|
4 | import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
---|
5 | import static org.junit.jupiter.api.Assertions.assertNotNull;
|
---|
6 |
|
---|
7 | import org.junit.jupiter.api.Test;
|
---|
8 | import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils;
|
---|
9 | import org.openstreetmap.josm.testutils.annotations.BasicPreferences;
|
---|
10 |
|
---|
11 | /**
|
---|
12 | * Unit tests of {@link ProxyPreference} class.
|
---|
13 | */
|
---|
14 | @BasicPreferences
|
---|
15 | class ProxyPreferenceTest {
|
---|
16 | /**
|
---|
17 | * Unit test of {@link ProxyPreference#ProxyPreference}.
|
---|
18 | */
|
---|
19 | @Test
|
---|
20 | void testProxyPreference() {
|
---|
21 | assertNotNull(new ProxyPreference.Factory().createPreferenceSetting());
|
---|
22 | }
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * Unit test of {@link ProxyPreference#addGui}.
|
---|
26 | */
|
---|
27 | @Test
|
---|
28 | void testAddGui() {
|
---|
29 | assertDoesNotThrow(() -> PreferencesTestUtils.doTestPreferenceSettingAddGui(new ProxyPreference.Factory(), null));
|
---|
30 | }
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.