Package com.hammingweight.hammock

Interface Summary
IArgumentMatcher The IArgumentMatcher is implemented by classes that determine whether two objects should be regarded as equal.
IClassDefinitions This interface defines the class instances that are used in Hammock.
IHammockExceptionErrors This interface contains text messages describing the most common problems when invoking methods on a test double or verifying that a mock object was invoked as expected.
IInvocationHandler The IInvocarionHandler interface defines the methods that a method invocation handler for a test double exposes.
IMockObject The IMockObject interface defines the methods that a mock object must implement to work with the Hammock framework.
 

Class Summary
AMockObject The AMockObject class is extended by mock objects so that they can use the Hammock framework.
ATestDoubleHandler The ATestDoubleHandler class is an IInvocationHandler that can be extended to support mock and spy objects.
ClassArgumentMatcher The ClassArgumentMatcher class checks that a method argument is an instance of the expected class.
DefaultArgumentMatcher The DefaultArgumentMatcher is used by default by the MethodHandler class to determine whether a method was invoked with the expected arguments.
DefaultValues The DefaultValues class provides a utility method for providing default instances of Java's wrapper classes.
Hammock The Hammock class is an IInvocationHandler that causes a test double associated with the handler to behave like a mock object.
Hamspy The Hamspy class is an IInvocationHandler that causes a test double associated with the handler to behave like a spy object.
InvocationMatcher The InvocationMatcher class is a helper class for verifying that expected and actual method invocations are equal.
InvocationVerifier The InvocationVerifier class is a helper class for verifying that methods were invoked as expected; in particular it is used with spy objects.
MethodHandler The MethodHandler class creates a handler for processing a method invocation.
MethodInvocation The MethodInvocation class describes a method invocation.
MockMethod The MockMethod class models a method associated with a mock object (or another test double such as a spy or stub).
NotNullArgumentMatcher The NotNullArgumentMatcher class checks that a method argument is not null.
PopulateArrayMatcher The PopulateArrayMatcher class allows a mocked method to populate an array when the method is invoked.
PromiscuousArgumentMatcher The PromiscuousArgumentMatcher always returns that two method arguments are equal.
 

Exception Summary
HammockException The HammockException class encapsulates various exceptions that may be thrown by test doubles.