source: josm/trunk/test/unit/org/openstreetmap/josm/gui/preferences/display/GPXPreferenceTest.java@ 17536

Last change on this file since 17536 was 17275, checked in by Don-vip, 4 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: 985 bytes
RevLine 
[9666]1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.preferences.display;
3
[17275]4import static org.junit.jupiter.api.Assertions.assertNotNull;
[9666]5
[17275]6import org.junit.jupiter.api.BeforeAll;
7import org.junit.jupiter.api.Test;
[9666]8import org.openstreetmap.josm.JOSMFixture;
9import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils;
10
11/**
[16979]12 * Unit tests of {@link GPXPreference} class.
[9666]13 */
[17275]14class GPXPreferenceTest {
[9666]15
16 /**
17 * Setup test.
18 */
[17275]19 @BeforeAll
[9666]20 public static void setUpBeforeClass() {
21 JOSMFixture.createUnitTestFixture().init();
22 }
23
24 /**
[16979]25 * Unit test of {@link GPXPreference.Factory}.
[9666]26 */
27 @Test
[17275]28 void testGPXPreference() {
[16979]29 assertNotNull(new GPXPreference.Factory().createPreferenceSetting());
[9666]30 }
31
32 /**
[16979]33 * Unit test of {@link GPXPreference#addGui}.
[9666]34 */
35 @Test
[17275]36 void testAddGui() {
[17179]37 PreferencesTestUtils.doTestPreferenceSettingAddGui(new GPXPreference.Factory(), null);
[9666]38 }
39}
Note: See TracBrowser for help on using the repository browser.