Class TestFutureRpcResults
- java.lang.Object
-
- org.opendaylight.serviceutils.tools.mdsal.testutils.TestFutureRpcResults
-
public final class TestFutureRpcResults extends Object
Assertion utilities forFutureRpcResults
.- Author:
- Michael Vorburger.ch
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <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
getResult(Future<org.opendaylight.yangtools.yang.common.RpcResult<T>> futureRpcResult)
-
-
-
Method Detail
-
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
-
-