Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferenceTest.java
- Timestamp:
- 2020-10-28T20:41:00+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/plugin/PluginPreferenceTest.java
r16160 r17275 2 2 package org.openstreetmap.josm.gui.preferences.plugin; 3 3 4 import static org.junit. Assert.assertEquals;5 import static org.junit. Assert.assertNotNull;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertNotNull; 6 6 7 7 import java.io.File; … … 10 10 import java.util.Collections; 11 11 12 import org.junit. Rule;13 import org.junit. Test;12 import org.junit.jupiter.api.Test; 13 import org.junit.jupiter.api.extension.RegisterExtension; 14 14 import org.openstreetmap.josm.TestUtils; 15 15 import org.openstreetmap.josm.gui.preferences.PreferencesTestUtils; … … 18 18 import org.openstreetmap.josm.plugins.PluginException; 19 19 import org.openstreetmap.josm.plugins.PluginInformation; 20 import org.openstreetmap.josm.testutils.JOSMTestRules; 20 21 import org.openstreetmap.josm.testutils.mockers.HelpAwareOptionPaneMocker; 21 import org.openstreetmap.josm.testutils.JOSMTestRules;22 22 23 23 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; … … 30 30 * Setup test. 31 31 */ 32 @R ule32 @RegisterExtension 33 33 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 34 34 public JOSMTestRules test = new JOSMTestRules().preferences().assertionsInEDT(); … … 38 38 */ 39 39 @Test 40 publicvoid testPluginPreference() {40 void testPluginPreference() { 41 41 assertNotNull(new PluginPreference.Factory().createPreferenceSetting()); 42 42 } … … 57 57 */ 58 58 @Test 59 publicvoid testBuildDownloadSummary() throws Exception {59 void testBuildDownloadSummary() throws Exception { 60 60 final PluginInformation dummy = getDummyPluginInformation(); 61 61 assertEquals("", PluginPreference.buildDownloadSummary( … … 89 89 */ 90 90 @Test 91 publicvoid testNotifyDownloadResults() {91 void testNotifyDownloadResults() { 92 92 final HelpAwareOptionPaneMocker mocker = new HelpAwareOptionPaneMocker(); 93 93 mocker.getMockResultMap().put("<html></html>", "OK"); // (buildDownloadSummary() output was empty) … … 103 103 */ 104 104 @Test 105 publicvoid testAddGui() {105 void testAddGui() { 106 106 PreferencesTestUtils.doTestPreferenceSettingAddGui(new PluginPreference.Factory(), null); 107 107 }
Note:
See TracChangeset
for help on using the changeset viewer.