com.hammingweight.hammock
Interface IInvocationHandler

All Known Implementing Classes:
ATestDoubleHandler, Hammock, Hamspy

public interface IInvocationHandler

The IInvocarionHandler interface defines the methods that a method invocation handler for a test double exposes. An IInvocationHandler is associated with a priority so that high priority handlers will get the first chance to process a method invocation.

Since:
Hammock 1.0
Author:
C.A. Meijer

Method Summary
 void invoke(MethodInvocation mi)
          This method is called when a test double Object needs to respond to a method invocation.
 

Method Detail

invoke

void invoke(MethodInvocation mi)
This method is called when a test double Object needs to respond to a method invocation.

Parameters:
mi - The method invocation.
Since:
Hammock 1.6.