org.virtualmock.aspect.aspectwerkz
Class UnitTestInterceptorAdvice

java.lang.Object
  extended byorg.codehaus.aspectwerkz.xmldef.advice.AbstractAdvice
      extended byorg.codehaus.aspectwerkz.xmldef.advice.AroundAdvice
          extended byorg.virtualmock.aspect.aspectwerkz.UnitTestInterceptorAdvice
All Implemented Interfaces:
org.codehaus.aspectwerkz.xmldef.advice.Advice, java.io.Serializable

public class UnitTestInterceptorAdvice
extends org.codehaus.aspectwerkz.xmldef.advice.AroundAdvice

This is the advice which intercepts all caller-side method calls which are made from the unit test class to the class under test (except those which are excluded through the pointcuts). It then 'records' it as a mock call, which will be played back later by the MethodInterceptorAdvice.

Version:
$Revision: 1.22 $
Author:
Chad Woolley
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.codehaus.aspectwerkz.xmldef.advice.AbstractAdvice
m_adviceClass, m_container, m_deploymentModel, m_memoryType, m_name, m_parameters
 
Constructor Summary
UnitTestInterceptorAdvice()
           
 
Method Summary
 java.lang.Object execute(org.codehaus.aspectwerkz.joinpoint.JoinPoint joinPoint)
          The template method from the superclass which contains all the logic for this advice.
 
Methods inherited from class org.codehaus.aspectwerkz.xmldef.advice.AroundAdvice
doExecute
 
Methods inherited from class org.codehaus.aspectwerkz.xmldef.advice.AbstractAdvice
getAdviceClass, getContainer, getDeploymentModel, getMemoryType, getName, getParameter, getParameters, getPerClassAdvice, getPerInstanceAdvice, getPerJvmAdvice, getPerThreadAdvice, getSystem, newInstance, setAdviceClass, setContainer, setDeploymentModel, setName, setParameter, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitTestInterceptorAdvice

public UnitTestInterceptorAdvice()
Method Detail

execute

public java.lang.Object execute(org.codehaus.aspectwerkz.joinpoint.JoinPoint joinPoint)
                         throws java.lang.Throwable
The template method from the superclass which contains all the logic for this advice.

Parameters:
joinPoint - the JoinPoint passed by AspectWerkz
Returns:
DOCUMENT ME! (Method Return)
Throws:
java.lang.Throwable - Throwable thrown by the method which is being advised


Copyright © 2003-2005 Virtual Mock. All Rights Reserved.