Verifier (jMock API Documentation)
Keywords: org.jmock.util.Verifier class

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jmock.util
Class Verifier

    java.lang.Object
      org.jmock.util.Verifier

    public class Verifier

extends Object

Helper class to verify all `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.

Since:
  1.0
Version:
  $Id: Verifier.java,v 1.1 2007/04/06 13:52:06 npryce Exp $
See Also:
  `Verifiable`

Constructor Summary
`Verifier()`

Method Summary
`static void` | `verifyObject(Object anObject)` Verifies all the fields of type Verifiable in the given object, including those inherited from superclasses.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Verifier

    public Verifier()

Method Detail

### verifyObject

    public static void verifyObject(Object anObject)

  Verifies all the fields of type Verifiable in the given object, including those inherited from superclasses.

  Parameters:
    `anObject` - The object to be verified.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD