Utils::CalitkoMocks::Testing::DelayedCallDriverTest Class Reference

Inherits TestFixture.

Inheritance diagram for Utils::CalitkoMocks::Testing::DelayedCallDriverTest:

Inheritance graph
[legend]
Collaboration diagram for Utils::CalitkoMocks::Testing::DelayedCallDriverTest:

Collaboration graph
[legend]
List of all members.

Detailed Description

Tests for class DelayedCallDriver.

Todo:
Test willEmit()

Definition at line 39 of file DelayedCallDriverTest.cpp.

Public Types

typedef BoundFunction< DelayedCallDriverTest,
int(int)> 
fooType
typedef CallDriver< fooTypeCallDriverFoo
typedef ExpectedFunction<
bool()> 
ExpectedFoo
typedef ExpectationDriver<
CallDriverFoo, ExpectedFoo
ExpectationDriverFoo

Public Member Functions

int foo (int a)
void testWillReturnOk ()
 willReturn() should not invoke the BoundFunction.
void testBoundFooWillCallNotCheckedFail ()
 BoundFunctions should verify the registered ExpectedFunctions.
void testWillCallOk ()
 willCall() should return an ExpectationDriver (compile-time check).

Public Attributes

bool fooOk

Private Member Functions

 CPPUNIT_TEST_SUITE (DelayedCallDriverTest)
 CPPUNIT_TEST (testWillReturnOk)
 CPPUNIT_TEST_FAIL (testBoundFooWillCallNotCheckedFail)
 CPPUNIT_TEST (testWillCallOk)
 CPPUNIT_TEST_SUITE_END ()


Member Typedef Documentation

typedef CallDriver<fooType> Utils::CalitkoMocks::Testing::DelayedCallDriverTest::CallDriverFoo
 

Definition at line 51 of file DelayedCallDriverTest.cpp.

typedef ExpectationDriver<CallDriverFoo, ExpectedFoo> Utils::CalitkoMocks::Testing::DelayedCallDriverTest::ExpectationDriverFoo
 

Definition at line 53 of file DelayedCallDriverTest.cpp.

typedef ExpectedFunction<bool ()> Utils::CalitkoMocks::Testing::DelayedCallDriverTest::ExpectedFoo
 

Definition at line 52 of file DelayedCallDriverTest.cpp.

typedef BoundFunction<DelayedCallDriverTest, int (int)> Utils::CalitkoMocks::Testing::DelayedCallDriverTest::fooType
 

Definition at line 50 of file DelayedCallDriverTest.cpp.


Member Function Documentation

Utils::CalitkoMocks::Testing::DelayedCallDriverTest::CPPUNIT_TEST testWillCallOk   )  [private]
 

Utils::CalitkoMocks::Testing::DelayedCallDriverTest::CPPUNIT_TEST testWillReturnOk   )  [private]
 

Utils::CalitkoMocks::Testing::DelayedCallDriverTest::CPPUNIT_TEST_FAIL testBoundFooWillCallNotCheckedFail   )  [private]
 

Utils::CalitkoMocks::Testing::DelayedCallDriverTest::CPPUNIT_TEST_SUITE DelayedCallDriverTest   )  [private]
 

Utils::CalitkoMocks::Testing::DelayedCallDriverTest::CPPUNIT_TEST_SUITE_END  )  [private]
 

int Utils::CalitkoMocks::Testing::DelayedCallDriverTest::foo int  a  )  [inline]
 

Definition at line 49 of file DelayedCallDriverTest.cpp.

void Utils::CalitkoMocks::Testing::DelayedCallDriverTest::testBoundFooWillCallNotCheckedFail  )  [inline]
 

BoundFunctions should verify the registered ExpectedFunctions.

Since the attached expectation is not check()'ed, the test should fail if its verifyChecked() is called by the underlying BoundFunction.

Definition at line 73 of file DelayedCallDriverTest.cpp.

void Utils::CalitkoMocks::Testing::DelayedCallDriverTest::testWillCallOk  )  [inline]
 

willCall() should return an ExpectationDriver (compile-time check).

Definition at line 94 of file DelayedCallDriverTest.cpp.

void Utils::CalitkoMocks::Testing::DelayedCallDriverTest::testWillReturnOk  )  [inline]
 

willReturn() should not invoke the BoundFunction.

Definition at line 56 of file DelayedCallDriverTest.cpp.


Member Data Documentation

bool Utils::CalitkoMocks::Testing::DelayedCallDriverTest::fooOk
 

Definition at line 48 of file DelayedCallDriverTest.cpp.


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