se.mockachino.order
Class OrderingContext

java.lang.Object
  extended by se.mockachino.order.OrderingContext

public class OrderingContext
extends java.lang.Object


Constructor Summary
OrderingContext(MockPoint start, MockPoint end)
           
 
Method Summary
 MockPoint afterLastCall()
           
 MockPoint atLastCall()
           
 MockPoint beforeLastCall()
           
 InOrderVerify verify()
          Verifies that a method call is called at least once.
 InOrderVerify verifyAtLeast(int min)
          Verifies that a method call is called at least min number of times.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderingContext

public OrderingContext(MockPoint start,
                       MockPoint end)
Method Detail

verify

public InOrderVerify verify()
Verifies that a method call is called at least once.

Typical usage:

 orderingContext.verify().on(mock).method();
 

Returns:
a verifier

verifyAtLeast

public InOrderVerify verifyAtLeast(int min)
Verifies that a method call is called at least min number of times.

Typical usage:

 orderingContext.verifyAtLeast(3).on(mock).method();
 

Parameters:
min - minimum number of calls
Returns:
a verifier

atLastCall

public MockPoint atLastCall()

beforeLastCall

public MockPoint beforeLastCall()

afterLastCall

public MockPoint afterLastCall()