Class AssertableCallback<V>

    • Constructor Detail

      • AssertableCallback

        public AssertableCallback()
    • Method Detail

      • onSuccess

        public void onSuccess​(@Nullable
                              V value)
        Invoked when computation produces its potentially null value successfully.

        When this is called, onError(java.lang.Throwable) won't be.

      • onError

        public void onError​(Throwable throwable)
        Invoked when computation produces a possibly null value successfully.

        When this is called, onSuccess(V) won't be.

      • join

        @Nullable
        public V join()
        Returns the value after performing state checks
      • assertThatSuccess

        public org.assertj.core.api.ObjectAssert<V> assertThatSuccess()
      • assertThatError

        public org.assertj.core.api.AbstractThrowableAssert<?,​? extends Throwable> assertThatError()