Class TestFutureRpcResults
java.lang.Object
org.opendaylight.serviceutils.tools.mdsal.testutils.TestFutureRpcResults
Assertion utilities for
FutureRpcResults
.- Author:
- Michael Vorburger.ch
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> void
assertRpcErrorCause
(Future<org.opendaylight.yangtools.yang.common.RpcResult<T>> futureRpcResult, Class<?> expectedExceptionClass, String expectedRpcErrorMessage) static <T> void
assertRpcErrorWithoutCausesOrMessages
(Future<org.opendaylight.yangtools.yang.common.RpcResult<T>> futureRpcResult) static <O extends org.opendaylight.yangtools.yang.binding.DataObject>
voidassertRpcSuccess
(Future<org.opendaylight.yangtools.yang.common.RpcResult<O>> futureRpcResult) static void
assertVoidRpcSuccess
(Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> futureRpcResult) static <T> T
-
Method Details
-
getResult
public static <T> T getResult(Future<org.opendaylight.yangtools.yang.common.RpcResult<T>> futureRpcResult) throws InterruptedException, ExecutionException, TimeoutException -
assertVoidRpcSuccess
public static void assertVoidRpcSuccess(Future<org.opendaylight.yangtools.yang.common.RpcResult<Void>> futureRpcResult) throws InterruptedException, ExecutionException, TimeoutException -
assertRpcSuccess
public static <O extends org.opendaylight.yangtools.yang.binding.DataObject> void assertRpcSuccess(Future<org.opendaylight.yangtools.yang.common.RpcResult<O>> futureRpcResult) throws InterruptedException, ExecutionException, TimeoutException -
assertRpcErrorWithoutCausesOrMessages
public static <T> void assertRpcErrorWithoutCausesOrMessages(Future<org.opendaylight.yangtools.yang.common.RpcResult<T>> futureRpcResult) throws InterruptedException, ExecutionException, TimeoutException -
assertRpcErrorCause
public static <T> void assertRpcErrorCause(Future<org.opendaylight.yangtools.yang.common.RpcResult<T>> futureRpcResult, Class<?> expectedExceptionClass, String expectedRpcErrorMessage) throws InterruptedException, ExecutionException, TimeoutException
-