Refine assertion error message in CfBasicHttpClientTest.
This commit is contained in:
@@ -82,7 +82,7 @@ class CfBasicHttpClientTest {
|
|||||||
assertTrue(exception.getMessage().contains("Unexpected error"));
|
assertTrue(exception.getMessage().contains("Unexpected error"));
|
||||||
Throwable cause = exception.getCause();
|
Throwable cause = exception.getCause();
|
||||||
assertInstanceOf(CloudflareApiException.class, cause);
|
assertInstanceOf(CloudflareApiException.class, cause);
|
||||||
assertTrue(cause.getMessage().contains("API error: 10404: No route for that URI"), "Expected error message: No route for that URI∞ but it was: " + cause.getMessage());
|
assertTrue(cause.getMessage().contains("No route for that URI"), "Expected error message: No route for that URI, but it was: " + cause.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user