Logo Search packages:      
Sourcecode: jmock2 version File versions  Download package

org::jmock::integration::junit3::MockObjectTestCase Class Reference

Inheritance diagram for org::jmock::integration::junit3::MockObjectTestCase:

org::jmock::integration::junit3::VerifyingTestCase

List of all members.


Detailed Description

A junit.framework.TestCase that supports testing with mock objects. It wraps a org.jmock.Mockery and automatically asserts that all expectations have been met at the end of the test before junit.framework.TestCase#tearDown() is called.

Author:
npryce

Definition at line 18 of file MockObjectTestCase.java.


Public Member Functions

void addVerifier (Runnable verifier)
void checking (ExpectationBuilder expectations)
 MockObjectTestCase (String name)
void runBare () throws Throwable
Sequence sequence (String name)
void setDefaultResultForType (Class<?> type, Object result)
void setImposteriser (Imposteriser imposteriser)
void setNamingScheme (MockObjectNamingScheme namingScheme)
States states (String name)
void verify ()

Package Functions

 [instance initializer]
public< T > T mock (Class< T > typeToMock)
public< T > T mock (Class< T > typeToMock, String name)

Private Attributes

final Mockery context = new Mockery()

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index