mockpp::InvokeAtLeastMatcher Class Reference
[Matchers]

Has the method been invoked at least a count? More...

Inheritance diagram for mockpp::InvokeAtLeastMatcher:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 InvokeAtLeastMatcher (int count)
 Creates the object.
virtual ~InvokeAtLeastMatcher ()
 Destroys the object.
virtual bool matches ()
 Checks if an invocation matches the expectaton.
virtual void verify ()
 Verify that the expected value is within the allowed bounds.
virtual bool hasDescription ()
 Does the object provide meaningful description via describeTo() ?.
virtual String describeTo (String &buffer) const
 Appends the description of this object to the buffer.

Detailed Description

Has the method been invoked at least a count?

See also:
mockpp::atLeast

Definition at line 45 of file InvokeAtLeastMatcher.h.


Constructor & Destructor Documentation

mockpp::InvokeAtLeastMatcher::InvokeAtLeastMatcher ( int  count  ) 

Creates the object.

Parameters:
count the required invocation count

Definition at line 39 of file InvokeAtLeastMatcher.cpp.


Member Function Documentation

String mockpp::InvokeAtLeastMatcher::describeTo ( String buffer  )  const [virtual]

Appends the description of this object to the buffer.

Parameters:
buffer The buffer that the description is appended to.
Returns:
The current content of the buffer data

Reimplemented from mockpp::InvokedRecorder.

Definition at line 73 of file InvokeAtLeastMatcher.cpp.

bool mockpp::InvokeAtLeastMatcher::hasDescription (  )  [virtual]

Does the object provide meaningful description via describeTo() ?.

Returns:
true: description is available

Reimplemented from mockpp::InvokedRecorder.

Definition at line 67 of file InvokeAtLeastMatcher.cpp.

bool mockpp::InvokeAtLeastMatcher::matches (  )  [virtual]

Checks if an invocation matches the expectaton.

Returns:
true: the invocation matches

Reimplemented from mockpp::InvokedRecorder.

Definition at line 50 of file InvokeAtLeastMatcher.cpp.

void mockpp::InvokeAtLeastMatcher::verify (  )  [virtual]

Verify that the expected value is within the allowed bounds.

If it fails, an AssertionFailedError is thrown

Reimplemented from mockpp::InvokedRecorder.

Definition at line 56 of file InvokeAtLeastMatcher.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on Tue Jan 5 09:49:08 2010 for mockpp by  doxygen 1.6.1