|
|
@ -95,8 +95,7 @@ public class PolarisCircuitBreakerHttpResponseTest {
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
void testGetStatusTextWithInvalidHttpStatus() {
|
|
|
|
void testGetStatusTextWithInvalidHttpStatus() {
|
|
|
|
PolarisCircuitBreakerHttpResponse response = new PolarisCircuitBreakerHttpResponse(999);
|
|
|
|
Assertions.assertThrows(IllegalArgumentException.class, () -> new PolarisCircuitBreakerHttpResponse(999).getStatusText());
|
|
|
|
Assertions.assertEquals("", response.getStatusText());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|