Package com.atlassian.confluence.it.rpc
Class RpcAssertions
- java.lang.Object
-
- com.atlassian.confluence.it.rpc.RpcAssertions
-
public class RpcAssertions extends Object
Some common assertions that crop up while testing RPC methods
-
-
Constructor Summary
Constructors Constructor Description RpcAssertions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertCausesNotPermittedException(ConfluenceRpc rpc, String methodName, Object... args)
Execute an RPC call with the expectation that it will throw a RemoteExceptionstatic void
assertCausesRemoteException(ConfluenceRpc rpc, String methodName, Object... args)
Execute an RPC call with the expectation that it will throw a RemoteExceptionstatic void
assertIsInvalidSessionException(Throwable e)
static void
assertIsNotFoundException(Throwable e)
static void
assertIsNotPermittedException(Throwable e)
static void
assertIsPermissionException(Throwable e)
static void
assertIsRemoteException(Throwable e)
-
-
-
Method Detail
-
assertCausesRemoteException
public static void assertCausesRemoteException(ConfluenceRpc rpc, String methodName, Object... args)
Execute an RPC call with the expectation that it will throw a RemoteException
-
assertCausesNotPermittedException
public static void assertCausesNotPermittedException(ConfluenceRpc rpc, String methodName, Object... args)
Execute an RPC call with the expectation that it will throw a RemoteException
-
assertIsNotFoundException
public static void assertIsNotFoundException(Throwable e)
-
assertIsRemoteException
public static void assertIsRemoteException(Throwable e)
-
assertIsPermissionException
public static void assertIsPermissionException(Throwable e)
-
assertIsNotPermittedException
public static void assertIsNotPermittedException(Throwable e)
-
assertIsInvalidSessionException
public static void assertIsInvalidSessionException(Throwable e)
-
-