net.sf.twip.jmock
Class TwiPjMockTest

java.lang.Object
  extended by net.sf.twip.jmock.TwiPjMockTest

public abstract class TwiPjMockTest
extends java.lang.Object

Convenience upper class for tests that use TwiP and JMock: It is annotated with TwiP and TwiPs JMock-Extension, declares a Mockery instance, and a simple check(Expectations) method.

For an example, see net.sf.twip.jmock.TwiPJMockTestWithInheritedMockery.


Field Summary
protected  org.jmock.Mockery mockery
          A readily defined Mockery for subclasses to use
 
Constructor Summary
TwiPjMockTest()
           
 
Method Summary
protected  void check(org.jmock.Expectations expectations)
          Add these Expectations to the Mockery.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mockery

protected final org.jmock.Mockery mockery
A readily defined Mockery for subclasses to use

Constructor Detail

TwiPjMockTest

public TwiPjMockTest()
Method Detail

check

protected void check(org.jmock.Expectations expectations)
Add these Expectations to the Mockery.



Copyright © 2010. All Rights Reserved.