Skip to content

Commit

Permalink
Issue-252 RequestITCaseTemplate
Browse files Browse the repository at this point in the history
Added new test case "followsLocationHeaderRelativeRedirect"
  • Loading branch information
AyushWalekar committed Jul 2, 2021
1 parent 22284ae commit 8eeccc5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/java/com/jcabi/http/RequestITCaseTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,15 @@ final void followsLocationHeader() throws IOException {
.assertStatus(HttpURLConnection.HTTP_OK);
}

@Test
final void followsLocationHeaderRelativeRedirect() throws IOException {
this.request("/relative-redirect/5")
.through(AutoRedirectingWire.class, Tv.SIX)
.fetch()
.as(RestResponse.class)
.assertStatus(HttpURLConnection.HTTP_OK);
}

@Test
final void failsOnTimeout() {
Assertions.assertThrows(
Expand Down

0 comments on commit 8eeccc5

Please sign in to comment.