org.jmock.util
public class Verifier extends java.lang.Object
Verifiable
fields of an object.
Example usage:
Verifying all expectations on one object at a time:
public class MockX implements Verifiable { private Expectation... anExpectation = new Expectation...(...); private Expectation... aSecondExpectation = new Expectation...(...); public void verify() { Verifier.verifyObject(this); } }This example shows how most mock objects implement
Verifiable
by delegation.Verifiable
Constructor and Description |
---|
Verifier() |
Modifier and Type | Method and Description |
---|---|
static void |
verifyObject(java.lang.Object anObject)
Verifies all the fields of type Verifiable in the given object, including
those inherited from superclasses.
|