public class InstrumentedClass extends java.lang.Object implements RemoteInterface
| Modifier and Type | Method and Description |
|---|---|
void |
assertKnownInstances(int count)
Checks that the number of known, distinct object instances of this class is as stated.
|
void |
assertMethodCallCount(java.lang.String message,
java.lang.String methodName,
CallCount callCount)
Checks that the number of known invocations of the given method falls within the specified
range for each known instances of the class.
|
void |
assertMethodCalled(java.lang.String methodName)
Checks that the given method has been called at least once on each known instance of the class.
|
void |
assertMethodNotCalled(java.lang.String methodName)
Checks that the given method has not been seen to be called on any known instance of the class.
|
java.util.Set<InstrumentedInstance> |
getInstances()
Returns the set of known instances of the class.
|
void |
trace(java.lang.String methodName,
java.lang.Object[] args)
Receiving side of the remote communication between the test code and the BytemanTestHelper.
|
public void trace(java.lang.String methodName,
java.lang.Object[] args)
throws java.rmi.RemoteException
trace in interface RemoteInterfacemethodName - the method name that was traced.args - the arguments to the method invocation, in String form.java.rmi.RemoteException - in case of communication failure.BytemanTestHelper.remoteTrace(String, String, Object[])public java.util.Set<InstrumentedInstance> getInstances()
public void assertKnownInstances(int count)
count - the expected number of instances of the class.public void assertMethodCallCount(java.lang.String message,
java.lang.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.public void assertMethodCalled(java.lang.String methodName)
methodName - the method name to look for.public void assertMethodNotCalled(java.lang.String methodName)
methodName - the method name to look for.Copyright © 2013. All Rights Reserved.