org.jmock.core

Interface Verifiable

Known Subinterfaces:
DynamicMock, Expectation, ExpectationCollection, InvocationDispatcher, InvocationMatcher, Invokable
Known Implementing Classes:
AbstractDynamicMock, AbstractExpectation, AbstractExpectationCollection, AnyArgumentsMatcher, ArgumentsMatcher, CGLIBCoreMock, CoreMock, ExpectationCounter, ExpectationDoubleValue, ExpectationList, ExpectationMap, ExpectationSegment, ExpectationSet, ExpectationValue, FIFOInvocationDispatcher, InvocationMocker, InvokeAtLeastOnceMatcher, InvokedAfterMatcher, InvokedRecorder, InvokeOnceMatcher, LIFOInvocationDispatcher, MethodNameMatcher, Mock, Mock, MockObject, NoArgumentsMatcher, ReturnObjectBag, ReturnObjectList, ReturnObjectMap, StatelessInvocationMatcher, TestFailureMatcher

public interface Verifiable

A Verifiable is an object that can confirm at the end of a unit test that the correct behvaiour has occurred.
See Also:
Verifier to check all the Verifiables in an object.

Method Summary

void
verify()
Throw an AssertionFailedException if any expectations have not been met.

Method Details

verify

public void verify()
Throw an AssertionFailedException if any expectations have not been met.