Modifier and Type | Method and Description |
---|---|
static <T> ExecResult<T> |
complete()
Returns a complete exec result.
|
default Registry |
getRegistry()
Deprecated.
|
boolean |
isComplete()
Is the result that the execution completed without a value being returned.
|
static <T> ExecResult<T> |
of(Result<T> result)
Wraps the given result as an exec result.
|
error, getThrowable, getValue, getValueOrThrow, isError, isSuccess, success
boolean isComplete()
This can happen if the promise was routed
instead of being returned to the caller,
or if the promise failed and the error was handled “upstream”.
In such a case, the code under test handled the promised value.
As the promise producing code dealt with the value, the tests will have to examine the side affects of this occurring.
@Deprecated default Registry getRegistry() throws UnsupportedOperationException
UnsupportedOperationException
- alwaysstatic <T> ExecResult<T> of(Result<T> result)
T
- the type of valueresult
- the resultstatic <T> ExecResult<T> complete()
T
- the type of value