org.jboss.aspects.mock
Annotation Type Replace


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Replace

This annotation is used by tests to describe a specific method that is to be intercepted and replaced by a call to a given other method in order to control isolation of unit tests.

Author:
Thomas Roka-Aardal

Required Element Summary
 String callbackClass
           
 String callbackMethod
           
 String invocation
           
 
Optional Element Summary
 long expectedCalls
           
 

Element Detail

invocation

public abstract String invocation

callbackClass

public abstract String callbackClass

callbackMethod

public abstract String callbackMethod

expectedCalls

public abstract long expectedCalls
Default:
9223372036854775807L


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.