Changeset 10876 in josm for trunk/test/functional
- Timestamp:
- 2016-08-22T22:05:45+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/tools/HttpClientTest.java
r10758 r10876 20 20 import org.junit.Assert; 21 21 import org.junit.Before; 22 import org.junit. BeforeClass;22 import org.junit.Rule; 23 23 import org.junit.Test; 24 import org.openstreetmap.josm.JOSMFixture;25 import org.openstreetmap.josm.Main;26 24 import org.openstreetmap.josm.TestUtils; 27 25 import org.openstreetmap.josm.data.Version; 28 26 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 27 import org.openstreetmap.josm.testutils.JOSMTestRules; 28 29 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 29 30 30 31 /** … … 33 34 public class HttpClientTest { 34 35 36 @Rule 37 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 38 public JOSMTestRules test = new JOSMTestRules().preferences(); 39 35 40 private ProgressMonitor progress; 36 37 @BeforeClass38 public static void setUpBeforeClass() {39 JOSMFixture.createFunctionalTestFixture().init();40 }41 41 42 42 @Before … … 173 173 @Test 174 174 public void testOpenUrlGzip() throws IOException { 175 Main.initApplicationPreferences();176 175 final URL url = new URL("https://www.openstreetmap.org/trace/1613906/data"); 177 176 try (BufferedReader x = HttpClient.create(url).connect().uncompress(true).getContentReader()) { … … 186 185 @Test 187 186 public void testOpenUrlBzip() throws IOException { 188 Main.initApplicationPreferences();189 187 final URL url = new URL("https://www.openstreetmap.org/trace/785544/data"); 190 188 try (BufferedReader x = HttpClient.create(url).connect().uncompress(true).getContentReader()) { … … 199 197 @Test 200 198 public void testTicket9660() throws IOException { 201 Main.initApplicationPreferences();202 199 final URL url = new URL("http://www.openstreetmap.org/trace/1350010/data"); 203 200 try (BufferedReader x = HttpClient.create(url).connect()
Note:
See TracChangeset
for help on using the changeset viewer.