Improved failure reporting.

This commit is contained in:
Simone Bordet 2016-03-07 10:34:49 +01:00
parent d48cfcdb62
commit 815bc54f5d
1 changed files with 6 additions and 10 deletions

View File

@ -185,11 +185,9 @@ public class MultiPartContentProviderTest extends AbstractHttpClientServerTest
.content(multiPart)
.send(result ->
{
if (result.isSucceeded())
{
Assert.assertTrue(String.valueOf(result.getFailure()), result.isSucceeded());
Assert.assertEquals(200, result.getResponse().getStatus());
responseLatch.countDown();
}
});
// Wait until the request has been sent.
@ -408,11 +406,9 @@ public class MultiPartContentProviderTest extends AbstractHttpClientServerTest
.content(multiPart)
.send(result ->
{
if (result.isSucceeded())
{
Assert.assertTrue(String.valueOf(result.getFailure()), result.isSucceeded());
Assert.assertEquals(200, result.getResponse().getStatus());
responseLatch.countDown();
}
});
// Wait until the request has been sent.