Changeset 18306 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2021-11-03T01:08:48+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/UploadActionTest.java
r18302 r18306 10 10 import java.util.concurrent.TimeUnit; 11 11 12 import org.junit. Ignore;12 import org.junit.jupiter.api.BeforeAll; 13 13 import org.junit.jupiter.api.Test; 14 14 import org.junit.jupiter.api.extension.RegisterExtension; … … 27 27 import org.openstreetmap.josm.testutils.mockers.WindowMocker; 28 28 import org.openstreetmap.josm.tools.Logging; 29 import org.openstreetmap.josm.tools.Territories; 29 30 30 31 import mockit.Invocation; … … 39 40 class UploadActionTest { 40 41 // Only needed for layer cleanup. And user identity cleanup. And ensuring that data isn't accidentally uploaded. 42 // Note that the setUp method can be replaced by the @Territories extension, when that is merged. 41 43 @RegisterExtension 42 44 JOSMTestRules josmTestRules = new JOSMTestRules().main().projection().fakeAPI(); 45 46 @BeforeAll 47 static void setUp() { 48 // Territories is needed due to test pollution. One of the listeners 49 // that may get registered on SelectionEventManager requires 50 // Territories. Rather unfortunately, we also need the external data to 51 // avoid the NPE. 52 Territories.initialize(); 53 } 43 54 44 55 /** … … 46 57 */ 47 58 @Test 48 @Ignore("doesn't work on CI")49 59 void testNonRegression21476() { 50 60 TestUtils.assumeWorkingJMockit();
Note:
See TracChangeset
for help on using the changeset viewer.