Changeset 16737 in josm
- Timestamp:
- 2020-07-06T22:25:55+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/tools/HttpClientTest.java
r16677 r16737 196 196 } 197 197 198 @Test198 /*@Test 199 199 public void testRelativeRedirects() throws IOException { 200 200 final HttpClient.Response response = HttpClient.create(new URL("https://httpbin.org/relative-redirect/3")).connect(progress); 201 201 assertThat(response.getResponseCode(), is(200)); 202 202 assertThat(response.getContentLength() > 100, is(true)); 203 } 204 205 @Test203 }*/ 204 205 /*@Test 206 206 public void testAbsoluteRedirects() throws IOException { 207 207 final HttpClient.Response response = HttpClient.create(new URL("https://httpbin.org/absolute-redirect/3")).connect(progress); 208 208 assertThat(response.getResponseCode(), is(200)); 209 209 assertThat(response.getContentLength() > 100, is(true)); 210 } 210 }*/ 211 211 212 212 /** … … 214 214 * @throws IOException if an I/O error occurs 215 215 */ 216 @Test(expected = IOException.class)216 /*@Test(expected = IOException.class) 217 217 public void testTooMuchRedirects() throws IOException { 218 218 HttpClient.create(new URL("https://httpbin.org/redirect/3")).setMaxRedirects(2).connect(progress); 219 } 219 }*/ 220 220 221 221 /**
Note:
See TracChangeset
for help on using the changeset viewer.