|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.virtualmock.aspect.AspectUtils
This class consists of utility methods which have been abstracted out of the Advice class. This makes them easier to debug and unit test. It also acts as an encapsulation layer between the advices and the rest of the class. This is the only class which deals with aspect-specific classes, such as JoinPoints.
| Constructor Summary | |
AspectUtils()
|
|
| Method Summary | |
java.lang.String[] |
createArgumentNames(java.lang.Object[] argumentValues)
Create dummy argument names. |
java.util.Hashtable |
hashArguments(java.lang.Class[] argumentTypes,
java.lang.Object[] argumentValues)
Transform two arrays of matching argument types and argument values into a hashtable of corresponding key/value pairs, with the argumentType as the key. |
boolean |
isClassExcluded(java.lang.Class targetClass)
Returns true if the specified class should be excluded from VirtualMock processing. |
java.lang.Object |
playbackMockCall(InvokedCall invokedCall,
RecordedCall recordedCall)
Performs the logic of playing back a recorded mock call. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AspectUtils()
| Method Detail |
public boolean isClassExcluded(java.lang.Class targetClass)
targetClass - the class which will be checked to see if it should
be excluded
public java.lang.String[] createArgumentNames(java.lang.Object[] argumentValues)
argumentValues - the argument values for which the dummy argument
names will be created.
public java.util.Hashtable hashArguments(java.lang.Class[] argumentTypes,
java.lang.Object[] argumentValues)
argumentTypes - an array of argument typesargumentValues - an array of argument values
public java.lang.Object playbackMockCall(InvokedCall invokedCall,
RecordedCall recordedCall)
throws java.lang.Throwable
invokedCall - the call that was invokedrecordedCall - the recorded call that matches this invoked call
java.lang.Throwable - the recorded mock exception (if one was recorded)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||