Changeset 36064 in osm for applications/editors/josm/plugins/surveyor/test
- Timestamp:
- 2023-03-21T14:49:10+01:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/surveyor/test/unit/org/openstreetmap/josm/plugins/surveyor/SurveyorShowActionTest.java
r35262 r36064 2 2 package org.openstreetmap.josm.plugins.surveyor; 3 3 4 import static org.junit.Assert.assertNotNull; 5 import static org.junit.Assert.assertTrue; 4 5 import static org.junit.jupiter.api.Assertions.assertNotNull; 6 import static org.junit.jupiter.api.Assertions.assertTrue; 6 7 7 8 import java.util.List; 8 9 9 import org.junit.Rule; 10 import org.junit.Test; 11 import org.openstreetmap.josm.testutils.JOSMTestRules; 10 import org.junit.jupiter.api.Test; 11 import org.openstreetmap.josm.testutils.annotations.BasicPreferences; 12 12 import org.openstreetmap.josm.tools.Logging; 13 14 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;15 13 16 14 /** 17 15 * Unit tests of {@link #SurveyorShowAction} 18 16 */ 19 public class SurveyorShowActionTest { 20 21 /** 22 * Setup rule 23 */ 24 @Rule 25 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 26 public JOSMTestRules test = new JOSMTestRules().preferences(); 27 17 @BasicPreferences 18 class SurveyorShowActionTest { 28 19 @Test 29 publicvoid testCreateComponent() {20 void testCreateComponent() { 30 21 Logging.clearLastErrorAndWarnings(); 31 22 SurveyorComponent comp = SurveyorShowAction.createComponent(); 32 23 assertNotNull(comp); 33 24 List<String> errors = Logging.getLastErrorAndWarnings(); 34 assertTrue(errors. toString(), errors.isEmpty());25 assertTrue(errors.isEmpty(), errors.toString()); 35 26 } 36 27 }
Note:
See TracChangeset
for help on using the changeset viewer.