public class InstrumentedInstance extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
assertMethodCallCount(String message,
String methodName,
CallCount callCount)
Checks that the number of known invocations of the given method falls
within the specified range.
|
int |
getInvocationCount(String methodName)
Returns the number of known invocations of the given method upon the object instance.
|
public int getInvocationCount(String methodName)
methodName - the method name to look for.public void assertMethodCallCount(String message, String methodName, CallCount callCount)
message - the message to print in case of assertion failure.methodName - the method name to look for.callCount - the expected range for the invocation count.Copyright © 2016. All rights reserved.