|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use MethodCall | |
---|---|
org.apache.aries.unittest.mocks |
Uses of MethodCall in org.apache.aries.unittest.mocks |
---|
Methods in org.apache.aries.unittest.mocks with parameters of type MethodCall | |
---|---|
void |
Skeleton.assertCalled(MethodCall call)
This does the same as checkCall, but throws an junit.framework.AssertionFailedError if the call did not occur. |
void |
Skeleton.assertCalledExactNumberOfTimes(MethodCall call,
int numberOfCalls)
This method asserts that the method specified in the call parameter has been called the number of times specified by numberOfCalls. |
void |
Skeleton.assertNotCalled(MethodCall call)
This method throws an junit.framework.AssertionFailedError if the specified call was invoked on the skeleton. |
boolean |
Skeleton.checkCall(MethodCall call)
Checks that the specified method has been called on this skeleton |
void |
Skeleton.deRegisterMethodCallHandler(MethodCall call)
This method removes a registered MethodCallHandler for the specified MethodCall. |
Object |
MethodCallHandler.handle(MethodCall methodCall,
Skeleton parent)
|
static boolean |
DefaultMethodCallHandlers.isDefaultMethodCall(MethodCall call)
This method returns true if and only if the specified call represents a default method call. |
void |
Skeleton.registerMethodCallHandler(MethodCall call,
MethodCallHandler handler)
This method registers a MethodCallHandler for the specified MethodCall. |
void |
Skeleton.setReturnValue(MethodCall call,
Object value)
This is a convenience method for registering a method call handler where a specific value should be returned when a method is called, rather than some logic needs to be applied. |
void |
Skeleton.setThrows(MethodCall call,
Error thingToThrow)
This is a convenience method for registering a method call handler where a specific exception should be thrown when the method is called, rather than some logic needs to be applied. |
void |
Skeleton.setThrows(MethodCall call,
Exception thingToThrow)
This is a convenience method for registering a method call handler where a specific exception should be thrown when the method is called, rather than some logic needs to be applied. |
Method parameters in org.apache.aries.unittest.mocks with type arguments of type MethodCall | |
---|---|
void |
Skeleton.assertCalled(List<MethodCall> calls,
boolean allCalls)
This method checks that the MethodCalls objects in the given list were made and throws an AssertionFailedError if they were not. |
boolean |
Skeleton.checkCalls(List<MethodCall> calls,
boolean allCalls)
This method checks that the calls in the list occurred. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |