Skip to content

Commit

Permalink
Corrected asserts in Http1IntegrationTest#testExpectationFailed test …
Browse files Browse the repository at this point in the history
…case
  • Loading branch information
ok2c committed Oct 26, 2022
1 parent d31e3b6 commit 793bbc2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ protected AsyncResponseProducer verify(final HttpRequest request, final HttpCont
final HttpResponse response1 = result1.getHead();
Assertions.assertNotNull(response1);
Assertions.assertEquals(200, response1.getCode());
Assertions.assertNotNull("All is well", result1.getBody());
Assertions.assertEquals("All is well", result1.getBody());

Assertions.assertTrue(ioSession.isOpen());

Expand All @@ -796,7 +796,7 @@ protected AsyncResponseProducer verify(final HttpRequest request, final HttpCont
final HttpResponse response2 = result2.getHead();
Assertions.assertNotNull(response2);
Assertions.assertEquals(HttpStatus.SC_UNAUTHORIZED, response2.getCode());
Assertions.assertNotNull("You shall not pass", result2.getBody());
Assertions.assertEquals("You shall not pass", result2.getBody());

Assertions.assertTrue(ioSession.isOpen());

Expand All @@ -810,7 +810,7 @@ protected AsyncResponseProducer verify(final HttpRequest request, final HttpCont
final HttpResponse response3 = result3.getHead();
Assertions.assertNotNull(response3);
Assertions.assertEquals(200, response3.getCode());
Assertions.assertNotNull("All is well", result3.getBody());
Assertions.assertEquals("All is well", result3.getBody());

Assertions.assertTrue(ioSession.isOpen());

Expand All @@ -823,7 +823,7 @@ protected AsyncResponseProducer verify(final HttpRequest request, final HttpCont
final HttpResponse response4 = result4.getHead();
Assertions.assertNotNull(response4);
Assertions.assertEquals(HttpStatus.SC_UNAUTHORIZED, response4.getCode());
Assertions.assertNotNull("You shall not pass", result4.getBody());
Assertions.assertEquals("You shall not pass", result4.getBody());

Assertions.assertFalse(ioSession.isOpen());
}
Expand Down

0 comments on commit 793bbc2

Please sign in to comment.