Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/io/remotecontrol/RemoteControlTest.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/io/remotecontrol/RemoteControlTest.java
r16436 r17275 2 2 package org.openstreetmap.josm.io.remotecontrol; 3 3 4 import static org.junit. Assert.assertEquals;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 5 6 6 import java.io.BufferedReader; … … 15 15 import java.util.stream.Collectors; 16 16 17 import org.junit. After;18 import org.junit. Before;19 import org.junit. Rule;20 import org.junit. Test;17 import org.junit.jupiter.api.AfterEach; 18 import org.junit.jupiter.api.BeforeEach; 19 import org.junit.jupiter.api.Test; 20 import org.junit.jupiter.api.extension.RegisterExtension; 21 21 import org.openstreetmap.josm.TestUtils; 22 22 import org.openstreetmap.josm.spi.preferences.Config; … … 32 32 * Unit tests for Remote Control 33 33 */ 34 publicclass RemoteControlTest {34 class RemoteControlTest { 35 35 36 36 private String httpBase; … … 46 46 * Setup test. 47 47 */ 48 @R ule48 @RegisterExtension 49 49 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 50 50 public JOSMTestRules test = new JOSMTestRules().preferences().https().assertionsInEDT(); … … 54 54 * @throws GeneralSecurityException if a security error occurs 55 55 */ 56 @Before 56 @BeforeEach 57 57 public void setUp() throws GeneralSecurityException { 58 58 if (PlatformManager.isPlatformWindows() && "True".equals(System.getenv("APPVEYOR"))) { … … 69 69 * Stops Remote control after testing requests. 70 70 */ 71 @After 71 @AfterEach 72 72 public void tearDown() { 73 73 RemoteControl.stop(); … … 79 79 */ 80 80 @Test 81 publicvoid testHttpListOfCommands() throws Exception {81 void testHttpListOfCommands() throws Exception { 82 82 testListOfCommands(httpBase); 83 83 }
Note:
See TracChangeset
for help on using the changeset viewer.