Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/io/NetworkManagerTest.java
- Timestamp:
- 2020-10-28T20:41:00+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/NetworkManagerTest.java
r16426 r17275 2 2 package org.openstreetmap.josm.io; 3 3 4 import static org.junit. Assert.assertEquals;5 import static org.junit. Assert.assertFalse;6 import static org.junit. Assert.assertTrue;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertFalse; 6 import static org.junit.jupiter.api.Assertions.assertTrue; 7 7 8 8 import java.net.MalformedURLException; … … 10 10 import java.util.Map; 11 11 12 import org.junit. Rule;13 import org.junit.Test; 12 import org.junit.jupiter.api.extension.RegisterExtension; 13 import org.junit.jupiter.api.Test; 14 14 import org.openstreetmap.josm.testutils.JOSMTestRules; 15 15 … … 19 19 * Unit tests of {@link NetworkManager} class. 20 20 */ 21 publicclass NetworkManagerTest {21 class NetworkManagerTest { 22 22 23 23 /** 24 24 * Setup test. 25 25 */ 26 @R ule26 @RegisterExtension 27 27 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 28 28 public JOSMTestRules test = new JOSMTestRules().https().devAPI().main().projection(); … … 35 35 */ 36 36 @Test 37 publicvoid testNetworkErrors() throws MalformedURLException {37 void testNetworkErrors() throws MalformedURLException { 38 38 NetworkManager.clearNetworkErrors(); 39 39 assertTrue(NetworkManager.getNetworkErrors().isEmpty()); … … 52 52 */ 53 53 @Test 54 publicvoid testOfflineResources() {54 void testOfflineResources() { 55 55 NetworkManager.setOnline(OnlineResource.ALL); 56 56 assertFalse(NetworkManager.isOffline("http://www.example.com/"));
Note:
See TracChangeset
for help on using the changeset viewer.
