Changeset 18853 in josm for trunk/test/functional/org/openstreetmap/josm
- Timestamp:
- 2023-10-04T00:03:40+02:00 (15 months ago)
- Location:
- trunk/test/functional/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/gui/GettingStartedTest.java
r17275 r18853 6 6 import java.io.IOException; 7 7 8 import org.junit.jupiter.api.Disabled; 8 9 import org.junit.jupiter.api.Test; 9 import org.junit.jupiter.api.BeforeAll;10 import org.junit.jupiter.api.Disabled;11 import org.openstreetmap.josm.JOSMFixture;12 10 13 11 /** … … 15 13 */ 16 14 class GettingStartedTest { 17 18 /**19 * Setup test.20 */21 @BeforeAll22 public static void init() {23 JOSMFixture.createFunctionalTestFixture().init();24 }25 26 15 /** 27 16 * Tests that image links are replaced. -
trunk/test/functional/org/openstreetmap/josm/gui/history/HistoryBrowserTestFT.java
r17275 r18853 6 6 import javax.swing.JFrame; 7 7 8 import org.junit.jupiter.api.BeforeAll;9 8 import org.openstreetmap.josm.JOSMFixture; 10 9 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; … … 18 17 19 18 class HistoryBrowserTestFT extends JFrame { 20 21 @BeforeAll22 public static void init() {23 JOSMFixture.createFunctionalTestFixture().init();24 }25 19 26 20 private HistoryBrowser browser; … … 57 51 58 52 public static void main(String[] args) { 59 HistoryBrowserTestFT.init();53 JOSMFixture.createFunctionalTestFixture().init(); 60 54 new HistoryBrowserTestFT().setVisible(true); 61 55 } -
trunk/test/functional/org/openstreetmap/josm/tools/ImageProviderTest.java
r17275 r18853 25 25 import javax.swing.ImageIcon; 26 26 27 import org.junit.jupiter.api.BeforeAll;28 27 import org.junit.jupiter.api.BeforeEach; 29 28 import org.junit.jupiter.api.Test; 30 import org.junit.jupiter.api.extension.RegisterExtension;31 29 import org.junit.jupiter.params.ParameterizedTest; 32 30 import org.junit.jupiter.params.provider.ValueSource; 33 import org.openstreetmap.josm.JOSMFixture;34 31 import org.openstreetmap.josm.TestUtils; 35 32 import org.openstreetmap.josm.data.coor.LatLon; … … 38 35 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresets; 39 36 import org.openstreetmap.josm.gui.tagging.presets.items.Key; 40 import org.openstreetmap.josm.testutils.JOSMTestRules;41 37 import org.xml.sax.SAXException; 42 38 43 39 import com.kitfox.svg.SVGConst; 44 45 40 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 46 41 … … 49 44 */ 50 45 class ImageProviderTest { 51 52 /**53 * Setup test.54 */55 @RegisterExtension56 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")57 public JOSMTestRules test = new JOSMTestRules();58 59 46 private static final class LogHandler14319 extends Handler { 60 47 boolean failed; … … 74 61 public void close() throws SecurityException { 75 62 } 76 }77 78 /**79 * Setup test.80 */81 @BeforeAll82 public static void setUp() {83 JOSMFixture.createUnitTestFixture().init();84 63 } 85 64 -
trunk/test/functional/org/openstreetmap/josm/tools/ImageProviderTestIT.java
r17275 r18853 5 5 6 6 import org.junit.jupiter.api.Test; 7 import org.junit.jupiter.api.extension.RegisterExtension;8 import org.openstreetmap.josm.testutils.JOSMTestRules;9 10 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;11 7 12 8 /** … … 14 10 */ 15 11 class ImageProviderTestIT { 16 17 /**18 * Setup test.19 */20 @RegisterExtension21 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")22 public JOSMTestRules test = new JOSMTestRules();23 24 12 /** 25 13 * Test fetching an image using {@code wiki://} protocol. -
trunk/test/functional/org/openstreetmap/josm/tools/ImageProviderTestManual.java
r17275 r18853 11 11 import javax.swing.JPanel; 12 12 13 import org.junit.jupiter.api.Disabled; 13 14 import org.junit.jupiter.api.Test; 14 import org.junit.jupiter.api.Disabled;15 import org.junit.jupiter.api.extension.RegisterExtension;16 import org.openstreetmap.josm.testutils.JOSMTestRules;17 18 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;19 15 20 16 /** … … 22 18 */ 23 19 class ImageProviderTestManual { 24 25 /**26 * Setup test.27 */28 @RegisterExtension29 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")30 public JOSMTestRules test = new JOSMTestRules();31 32 20 /** 33 21 * Test getting a cursor 34 22 * @throws InterruptedException in case of thread interruption 35 23 */ 36 @Disabled("manual execution only, as the look of the cursor cannot be checked automat edly")24 @Disabled("manual execution only, as the look of the cursor cannot be checked automatically") 37 25 @Test 38 26 void testGetCursor() throws InterruptedException {
Note:
See TracChangeset
for help on using the changeset viewer.