Class AssertionUtils

java.lang.Object
io.micronaut.http.tck.AssertionUtils

public final class AssertionUtils extends Object
Utility class used to perform assertions.
Since:
3.8.0
  • Method Details

    • assertThrowsStatus

      public static BiConsumer<ServerUnderTest,io.micronaut.http.HttpRequest<?>> assertThrowsStatus(@NonNull @NonNull io.micronaut.http.HttpStatus status)
    • assertThrows

      public static void assertThrows(@NonNull @NonNull ServerUnderTest server, @NonNull @NonNull io.micronaut.http.HttpRequest<?> request, @NonNull @NonNull HttpResponseAssertion assertion)
    • assertThrows

      public static void assertThrows(@NonNull @NonNull ServerUnderTest server, @NonNull @NonNull io.micronaut.http.HttpRequest<?> request, @NonNull @NonNull io.micronaut.http.HttpStatus expectedStatus, @Nullable @Nullable String expectedBody, @Nullable @Nullable Map<String,String> expectedHeaders)
    • assertDoesNotThrow

      public static <T> void assertDoesNotThrow(@NonNull @NonNull ServerUnderTest server, @NonNull @NonNull io.micronaut.http.HttpRequest<T> request, @NonNull @NonNull io.micronaut.http.HttpStatus expectedStatus, @Nullable @Nullable String expectedBody, @Nullable @Nullable Map<String,String> expectedHeaders)
    • assertDoesNotThrow

      public static <T> void assertDoesNotThrow(@NonNull @NonNull ServerUnderTest server, @NonNull @NonNull io.micronaut.http.HttpRequest<T> request, @NonNull @NonNull HttpResponseAssertion assertion)