com.atlassian.confluence.it.rpc
Class RpcAssertions

java.lang.Object
  extended by com.atlassian.confluence.it.rpc.RpcAssertions

public class RpcAssertions
extends java.lang.Object

Some common assertions that crop up while testing RPC methods


Constructor Summary
RpcAssertions()
           
 
Method Summary
static void assertCausesNotPermittedException(ConfluenceRpc rpc, java.lang.String methodName, java.lang.Object... args)
          Execute an RPC call with the expectation that it will throw a RemoteException
static void assertCausesRemoteException(ConfluenceRpc rpc, java.lang.String methodName, java.lang.Object... args)
          Execute an RPC call with the expectation that it will throw a RemoteException
static void assertIsNotPermittedException(java.lang.Throwable e)
           
static void assertIsRemoteException(java.lang.Throwable e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RpcAssertions

public RpcAssertions()
Method Detail

assertCausesRemoteException

public static void assertCausesRemoteException(ConfluenceRpc rpc,
                                               java.lang.String methodName,
                                               java.lang.Object... args)
Execute an RPC call with the expectation that it will throw a RemoteException


assertCausesNotPermittedException

public static void assertCausesNotPermittedException(ConfluenceRpc rpc,
                                                     java.lang.String methodName,
                                                     java.lang.Object... args)
Execute an RPC call with the expectation that it will throw a RemoteException


assertIsRemoteException

public static void assertIsRemoteException(java.lang.Throwable e)

assertIsNotPermittedException

public static void assertIsNotPermittedException(java.lang.Throwable e)


Copyright © 2003-2014 Atlassian. All Rights Reserved.