Package org.jmock.util
Class Verifier
- java.lang.Object
-
- org.jmock.util.Verifier
-
public class Verifier extends java.lang.ObjectHelper class to verify allVerifiablefields 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 implementVerifiableby delegation.- Since:
- 1.0
- Version:
- $Id$
- See Also:
Verifiable
-
-
Constructor Summary
Constructors Constructor Description Verifier()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidverifyObject(java.lang.Object anObject)Verifies all the fields of type Verifiable in the given object, including those inherited from superclasses.
-