[Mockpp-commits] mockpp/mockpp/tests ThrowableList_test.cpp,1.11,1.12
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-04-21 20:35:50
|
Update of /cvsroot/mockpp/mockpp/mockpp/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19366/mockpp/tests Modified Files: ThrowableList_test.cpp Log Message: consistent naming Index: ThrowableList_test.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/ThrowableList_test.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- ThrowableList_test.cpp 27 Feb 2005 11:48:16 -0000 1.11 +++ ThrowableList_test.cpp 21 Apr 2005 20:35:40 -0000 1.12 @@ -72,7 +72,7 @@ { mockpp::ThrowableList tl(MOCKPP_PCHAR("tl"), 0); tl.push_back(mockpp::make_throwable(std::string("my-item 1"))); - tl.push_back(std::string("my-item 2")); + tl.addObjectToThrow(std::string("my-item 2")); try { @@ -116,8 +116,8 @@ mockpp::Throwable *tt4 = mockpp::make_throwable(std::string("my-item 4")); tl.push_back(tt1); tl.push_back(tt2); - tl.push_back(tt3); - tl.push_back(tt4); + tl.addObjectToThrow(tt3); + tl.addObjectToThrow(tt4); CPPUNIT_ASSERT(tl.hasMoreObjects() == true); tl.reset(); CPPUNIT_ASSERT(tl.hasMoreObjects() == false); @@ -136,8 +136,8 @@ tl.push_back(tt1); tl.push_back(tt2); - tl.push_back(tt3); - tl.push_back(tt4); + tl.addObjectToThrow(tt3); + tl.addObjectToThrow(tt4); CPPUNIT_ASSERT(tl.at(0) == tt1); CPPUNIT_ASSERT(tl.at(1) == tt2); @@ -172,8 +172,8 @@ tl.push_back(tt1); CPPUNIT_ASSERT(tl.hasMoreObjects() == true); tl.push_back(mockpp::make_throwable(std::string("my-item 2"))); - tl.push_back(std::string("my-item 3")); - tl.push_back(std::string("my-item 4")); + tl.addObjectToThrow(std::string("my-item 3")); + tl.addObjectToThrow(std::string("my-item 4")); CPPUNIT_ASSERT(tl.hasMoreObjects() == true); |