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

org::jmock::internal::Cardinality Class Reference

Inherits org::hamcrest::SelfDescribing.

List of all members.


Detailed Description

The acceptable range of times an expectation may be invoked.

Author:
smgf

nat

Definition at line 12 of file Cardinality.java.


Public Member Functions

boolean allowsMoreInvocations (int invocationCount)
 Cardinality (final int required, final int maximum)
void describeTo (Description description)
boolean isSatisfied (int invocationsSoFar)

Static Public Member Functions

static Cardinality atLeast (int required)
static Cardinality atMost (int maximum)
static Cardinality between (int required, int maximum)
static Cardinality exactly (int count)

Static Public Attributes

static final Cardinality ALLOWING = atLeast(0)

Private Attributes

final int maximum
final int required

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

Generated by  Doxygen 1.6.0   Back to index