Changeset 12562 in josm for trunk/test/functional
- Timestamp:
- 2017-08-03T19:57:36+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/tools/HttpClientTest.java
r12555 r12562 154 154 @Test 155 155 public void testRelativeRedirects() throws IOException { 156 final HttpClient.Response response = HttpClient.create(new URL("https://httpbin.org/relative-redirect/ 5")).connect(progress);156 final HttpClient.Response response = HttpClient.create(new URL("https://httpbin.org/relative-redirect/3")).connect(progress); 157 157 assertThat(response.getResponseCode(), is(200)); 158 158 assertThat(response.getContentLength() > 100, is(true)); … … 161 161 @Test 162 162 public void testAbsoluteRedirects() throws IOException { 163 final HttpClient.Response response = HttpClient.create(new URL("https://httpbin.org/absolute-redirect/ 5")).connect(progress);163 final HttpClient.Response response = HttpClient.create(new URL("https://httpbin.org/absolute-redirect/3")).connect(progress); 164 164 assertThat(response.getResponseCode(), is(200)); 165 165 assertThat(response.getContentLength() > 100, is(true)); … … 168 168 @Test(expected = IOException.class) 169 169 public void testTooMuchRedirects() throws IOException { 170 HttpClient.create(new URL("https://httpbin.org/redirect/ 5")).setMaxRedirects(4).connect(progress);170 HttpClient.create(new URL("https://httpbin.org/redirect/3")).setMaxRedirects(2).connect(progress); 171 171 } 172 172
Note:
See TracChangeset
for help on using the changeset viewer.