summaryrefslogtreecommitdiff
path: root/examples/cppunittest/MockTestCase.cpp
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2002-04-04 14:39:37 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2002-04-04 14:39:37 +0000
commit24000339facc182150fc564a4d85f99d89dd3e13 (patch)
tree913b1e85fec962bcc7c05c2f056d21cfe00a7226 /examples/cppunittest/MockTestCase.cpp
parentfecba1bea1788196b7d64b7153a469cd87097252 (diff)
downloadcppunit-24000339facc182150fc564a4d85f99d89dd3e13.tar.gz
NEW: added CPPUNIT_ASSERT_EQUAL_MESSAGE compatiblity break.
NEW: added CPPUNIT_ASSERT_EQUAL_MESSAGE compatiblity break. * include/cppunit/TestAssert.h: changed arguments order for CPPUNIT_ASSERT_EQUAL_MESSAGE. 'message' is now the first argument instead of the last (like CPPUNIT_ASSERT_MESSAGE). * examples/cppunittest/MockTestCase.cpp: * examples/cppunittest/MockTestListener.cpp: updated to reflect change on CPPUNIT_ASSERT_EQUAL_MESSAGE.
Diffstat (limited to 'examples/cppunittest/MockTestCase.cpp')
-rw-r--r--examples/cppunittest/MockTestCase.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/examples/cppunittest/MockTestCase.cpp b/examples/cppunittest/MockTestCase.cpp
index 6749272..6561ff4 100644
--- a/examples/cppunittest/MockTestCase.cpp
+++ b/examples/cppunittest/MockTestCase.cpp
@@ -142,32 +142,32 @@ MockTestCase::verify()
{
if ( m_hasSetUpExpectation )
{
- CPPUNIT_ASSERT_EQUAL_MESSAGE( m_expectedSetUpCall,
- m_actualSetUpCall,
- getName() + ": bad MockTestCase::setUp() "
- "call count" );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( getName() + ": bad MockTestCase::setUp() "
+ "call count",
+ m_expectedSetUpCall,
+ m_actualSetUpCall );
}
if ( m_hasTearDownExpectation )
{
- CPPUNIT_ASSERT_EQUAL_MESSAGE( m_expectedTearDownCall,
- m_actualTearDownCall,
- getName() + ": bad MockTestCase::setUp() "
- "call count" );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( getName() + ": bad MockTestCase::tearDown() "
+ "call count",
+ m_expectedTearDownCall,
+ m_actualTearDownCall );
}
if ( m_expectCountTestCasesCall )
{
- CPPUNIT_ASSERT_EQUAL_MESSAGE( m_expectedCountTestCasesCallCount,
- m_actualCountTestCasesCallCount,
- getName() + ": bad MockTestCase::countTestCases() "
- "call count" );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( getName() + ": bad MockTestCase::countTestCases() "
+ "call count",
+ m_expectedCountTestCasesCallCount,
+ m_actualCountTestCasesCallCount );
}
if ( m_expectRunTestCall )
{
- CPPUNIT_ASSERT_EQUAL_MESSAGE( m_expectedRunTestCallCount,
- m_actualRunTestCallCount,
- getName() + ": bad MockTestCase::runTest() "
- "call count" );
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( getName() + ": bad MockTestCase::runTest() "
+ "call count",
+ m_expectedRunTestCallCount,
+ m_actualRunTestCallCount );
}
}