Refine assertion error message in CfBasicHttpClientTest.

This commit is contained in:
2026-03-10 19:41:16 +01:00
parent f180e7daba
commit e42579541a
@@ -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