com.atlassian.confluence.it.rpc
Class RpcAssertions

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

public class RpcAssertions
extends Object

Some common assertions that crop up while testing RPC methods


Constructor Summary
RpcAssertions()
           
 
Method Summary
static void assertCausesNotPermittedException(ConfluenceRpc rpc, String methodName, Object... args)
          Execute an RPC call with the expectation that it will throw a RemoteException
static void assertCausesRemoteException(ConfluenceRpc rpc, String methodName, Object... args)
          Execute an RPC call with the expectation that it will throw a RemoteException
static void assertIsNotPermittedException(Throwable e)
           
static void assertIsRemoteException(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,
                                               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


assertIsRemoteException

public static void assertIsRemoteException(Throwable e)

assertIsNotPermittedException

public static void assertIsNotPermittedException(Throwable e)


Copyright © 2003-2013 Atlassian. All Rights Reserved.