Interface UniAsserter

    • Method Detail

      • assertEquals

        <T> UniAsserter assertEquals​(Supplier<io.smallrye.mutiny.Uni<T>> uni,
                                     T t)
      • assertNotEquals

        <T> UniAsserter assertNotEquals​(Supplier<io.smallrye.mutiny.Uni<T>> uni,
                                        T t)
      • assertNotSame

        <T> UniAsserter assertNotSame​(Supplier<io.smallrye.mutiny.Uni<T>> uni,
                                      T t)
      • surroundWith

        <T> UniAsserter surroundWith​(Function<io.smallrye.mutiny.Uni<T>,​io.smallrye.mutiny.Uni<T>> uni)
      • assertFailedWith

        <T> UniAsserter assertFailedWith​(Supplier<io.smallrye.mutiny.Uni<T>> uni,
                                         Consumer<Throwable> c)
        Used to determine whether or not the Uni contains the expected failure. The assertions fails if the Uni does not fail.
        Parameters:
        c - Consumer that performs custom assertions on whether or not the failure matches expectations. This allows asserting on anything present in the Throwable like, the cause or the message
      • assertFailedWith

        <T> UniAsserter assertFailedWith​(Supplier<io.smallrye.mutiny.Uni<T>> uni,
                                         Class<? extends Throwable> c)
        Used to determine whether or not the Uni contains the expected failure type. The assertions fails if the Uni does not fail.