Update of /cvsroot/mockpp/mockpp/mockpp/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4987/mockpp/tests
Modified Files:
NoException_test.cpp ThrowableList_test.cpp
Verifiable_test.cpp VisitableMockMethod_test.cpp mock_test.cpp
Log Message:
cleanup mssing tests
Index: Verifiable_test.cpp
===================================================================
RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/Verifiable_test.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- Verifiable_test.cpp 1 Jan 2006 16:34:48 -0000 1.30
+++ Verifiable_test.cpp 2 Jan 2006 11:37:17 -0000 1.31
@@ -76,6 +76,7 @@
#elif defined(MOCKPP_USE_BOOSTTEST)
+MOCKPP_BOOST_TEST(Verifiable_test::test_parent);
MOCKPP_BOOST_TEST(Verifiable_test::test_add);
MOCKPP_BOOST_TEST(Verifiable_test::test_add_remove);
MOCKPP_BOOST_TEST(Verifiable_test::test_clear);
Index: VisitableMockMethod_test.cpp
===================================================================
RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/VisitableMockMethod_test.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- VisitableMockMethod_test.cpp 1 Jan 2006 16:34:48 -0000 1.27
+++ VisitableMockMethod_test.cpp 2 Jan 2006 11:37:17 -0000 1.28
@@ -101,6 +101,7 @@
#elif defined(MOCKPP_USE_BOOSTTEST)
+MOCKPP_BOOST_TEST(VisitableMockMethod_test:: test_parameter_0 );
MOCKPP_BOOST_TEST(VisitableMockMethod_test:: test_parameter_0v );
MOCKPP_BOOST_TEST(VisitableMockMethod_test:: test_base );
MOCKPP_BOOST_TEST(VisitableMockMethod_test:: test_inst );
Index: ThrowableList_test.cpp
===================================================================
RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/ThrowableList_test.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- ThrowableList_test.cpp 1 Jan 2006 16:34:48 -0000 1.24
+++ ThrowableList_test.cpp 2 Jan 2006 11:37:17 -0000 1.25
@@ -79,6 +79,7 @@
#elif defined(MOCKPP_USE_BOOSTTEST)
+MOCKPP_BOOST_TEST(ThrowableList_test::test_throw);
MOCKPP_BOOST_TEST(ThrowableList_test::test_at);
MOCKPP_BOOST_TEST(ThrowableList_test::test_reset);
MOCKPP_BOOST_TEST(ThrowableList_test::test_setter);
Index: mock_test.cpp
===================================================================
RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/mock_test.cpp,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- mock_test.cpp 1 Jan 2006 19:40:37 -0000 1.37
+++ mock_test.cpp 2 Jan 2006 11:37:17 -0000 1.38
@@ -224,6 +224,9 @@
std::cout << " - size of <char> is " << sizeof(MOCKPP_CHAR('x')) << std::endl;
std::cout << "\n";
+ std::cout << "Options\n";
+ std::cout << " --show-name show method names before calling\n";
+
test_suite* test = boost::unit_test_framework::detail::auto_unit_test_suite();
/*
@@ -240,7 +243,7 @@
log_nothing = 9
*/
- unit_test_log::instance().set_log_threshold_level(log_successful_tests);
+ unit_test_log::instance().set_log_threshold_level(log_messages);
return test;
}
Index: NoException_test.cpp
===================================================================
RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/NoException_test.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- NoException_test.cpp 1 Jan 2006 16:34:48 -0000 1.13
+++ NoException_test.cpp 2 Jan 2006 11:37:17 -0000 1.14
@@ -78,7 +78,7 @@
public:
- MOCKPP_TESTMETHOD_DECL void test_invoke();
+ MOCKPP_TESTMETHOD_DECL void test_invoke();
virtual void setUp();
virtual void tearDown();
@@ -92,6 +92,8 @@
#elif defined(MOCKPP_USE_BOOSTTEST)
+MOCKPP_BOOST_TEST(NoException_test::test_invoke);
+
#elif defined(MOCKPP_USE_CPPUNIT)
CPPUNIT_TEST_SUITE_REGISTRATION (NoException_test);
@@ -122,6 +124,7 @@
int val;
};
+
struct OtherStruct {};
@@ -160,6 +163,8 @@
void NoException_test::test_invoke()
{
+ mockpp::setAssertionFailedForwarder(storeMalfunctionData<mockpp::AssertionFailedError>);
+
mockpp::ThrowableItem it;
it.take(MyStruct());
it.get()->throw_me();
|