Class RpcAssertions


  • public class RpcAssertions
    extends Object
    Some common assertions that crop up while testing RPC methods
    • 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
      • 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)