public final class AssertionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> void |
assertDoesNotThrow(ServerUnderTest server,
HttpRequest<T> request,
HttpResponseAssertion assertion) |
static <T> void |
assertDoesNotThrow(ServerUnderTest server,
HttpRequest<T> request,
HttpStatus expectedStatus,
String expectedBody,
Map<String,String> expectedHeaders) |
static void |
assertThrows(ServerUnderTest server,
HttpRequest<?> request,
HttpResponseAssertion assertion) |
static void |
assertThrows(ServerUnderTest server,
HttpRequest<?> request,
HttpStatus expectedStatus,
String expectedBody,
Map<String,String> expectedHeaders) |
public static void assertThrows(@NonNull ServerUnderTest server, @NonNull HttpRequest<?> request, @NonNull HttpResponseAssertion assertion)
public static void assertThrows(@NonNull ServerUnderTest server, @NonNull HttpRequest<?> request, @NonNull HttpStatus expectedStatus, @Nullable String expectedBody, @Nullable Map<String,String> expectedHeaders)
public static <T> void assertDoesNotThrow(@NonNull ServerUnderTest server, @NonNull HttpRequest<T> request, @NonNull HttpStatus expectedStatus, @Nullable String expectedBody, @Nullable Map<String,String> expectedHeaders)
public static <T> void assertDoesNotThrow(@NonNull ServerUnderTest server, @NonNull HttpRequest<T> request, @NonNull HttpResponseAssertion assertion)