public final class AssertionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T,B> void |
assertDoesNotThrow(ServerUnderTest server,
HttpRequest<T> request,
Argument<B> bodyType,
HttpResponseAssertion assertion) |
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)
public static <T,B> void assertDoesNotThrow(@NonNull ServerUnderTest server, @NonNull HttpRequest<T> request, @Nullable Argument<B> bodyType, @NonNull HttpResponseAssertion assertion)