| Home >> All >> com >> mockobjects >> [ util Javadoc ] |
com.mockobjects.util: Javadoc index of package com.mockobjects.util.
Package Samples:
com.mockobjects.util
Classes:
Null: A class that represents the null value. The Null class is used when an Expectation is set to expect nothing. Example usage: public class MockX { private Expectation... anExpectation = new Expectation...(...); public MockX() { anExpectation.setExpectNothing(); } public void setAnExpectation(Object value) { anExpectation.setExpected(value); } public void setActual(Object value) { anExpectation.setActual(value); } } The act of calling Expectation.setExpectNothing() 55 tells the expectation that it should expect no values to change. Since all Null objects are equal to themselves, most expectations ...
Verifier: Helper class to verify all Expectation s of an object. The Verifier class provides two static methods to verify objects: verifyObject(Object) 55 verifyField(Field, Object) 55 These two methods can be used to verify any expectation to assert that they still hold. 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 mocks implement ...
TestCaseMo: Provides a level of indirection from TestCase so you can accomodate JUnit interface changes (like the change from 2.x to 3.1)
SuiteBuilder: Singleton to fill in a JUnit Test composite for use in a suite method.
AssertMo
ErrorLogger
NotImplementedException
| Home | Contact Us | Privacy Policy | Terms of Service |