[Mockpp-commits] mockpp/mockpp/tests ChainableMockMethod_test.cpp,1.6,1.7 VisitableMockMethod_test.c
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-10-29 18:17:38
|
Update of /cvsroot/mockpp/mockpp/mockpp/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11255/mockpp/tests Modified Files: ChainableMockMethod_test.cpp VisitableMockMethod_test.cpp Log Message: provide up to 6 parameters Index: VisitableMockMethod_test.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/VisitableMockMethod_test.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- VisitableMockMethod_test.cpp 25 Oct 2005 19:05:29 -0000 1.6 +++ VisitableMockMethod_test.cpp 29 Oct 2005 18:17:30 -0000 1.7 @@ -44,6 +44,7 @@ #include <mockpp/VisitableMockMethod3.h> #include <mockpp/VisitableMockMethod4.h> #include <mockpp/VisitableMockMethod5.h> +#include <mockpp/VisitableMockMethod6.h> #include <mockpp/VisitableMockObject.h> @@ -144,6 +145,7 @@ mockpp::VisitableMockMethod3<void, int, int, int> mmv3(MOCKPP_PCHAR("mm3"), 0); mockpp::VisitableMockMethod4<void, int, int, int, int> mmv4(MOCKPP_PCHAR("mm4"), 0); mockpp::VisitableMockMethod5<void, int, int, int, int, int> mmv5(MOCKPP_PCHAR("mm5"), 0); + mockpp::VisitableMockMethod6<void, int, int, int, int, int, int> mmv6(MOCKPP_PCHAR("mm6"), 0); mockpp::VisitableMockMethod0<int> mmi0(MOCKPP_PCHAR("mm0"), 0); mockpp::VisitableMockMethod1<int, int> mmi1(MOCKPP_PCHAR("mm1"), 0); @@ -151,7 +153,7 @@ mockpp::VisitableMockMethod3<int, int, int, int> mmi3(MOCKPP_PCHAR("mm3"), 0); mockpp::VisitableMockMethod4<int, int, int, int, int> mmi4(MOCKPP_PCHAR("mm4"), 0); mockpp::VisitableMockMethod5<int, int, int, int, int, int> mmi5(MOCKPP_PCHAR("mm5"), 0); - + mockpp::VisitableMockMethod6<int, int, int, int, int, int, int> mmi6(MOCKPP_PCHAR("mm6"), 0); } Index: ChainableMockMethod_test.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/ChainableMockMethod_test.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- ChainableMockMethod_test.cpp 25 Oct 2005 20:20:18 -0000 1.6 +++ ChainableMockMethod_test.cpp 29 Oct 2005 18:17:30 -0000 1.7 @@ -44,6 +44,7 @@ #include <mockpp/chaining/ChainableMockMethod3.h> #include <mockpp/chaining/ChainableMockMethod4.h> #include <mockpp/chaining/ChainableMockMethod5.h> +#include <mockpp/chaining/ChainableMockMethod6.h> #include <mockpp/chaining/ChainingMockObjectSupport.h> #include <mockpp/chaining/Invocation.h> @@ -66,6 +67,7 @@ CPPUNIT_TEST( test_parameter_0 ); CPPUNIT_TEST( test_parameter_0v ); + CPPUNIT_TEST( test_inst ); CPPUNIT_TEST_SUITE_END(); @@ -73,6 +75,7 @@ void test_parameter_0(); void test_parameter_0v(); + void test_inst(); }; @@ -104,6 +107,27 @@ }; + +void ChainableMockMethod_test::test_inst() +{ + mockpp::ChainableMockMethod0<void> mmv0(MOCKPP_PCHAR("mm0"), 0); + mockpp::ChainableMockMethod1<void, int> mmv1(MOCKPP_PCHAR("mm1"), 0); + mockpp::ChainableMockMethod2<void, int, int> mmv2(MOCKPP_PCHAR("mm2"), 0); + mockpp::ChainableMockMethod3<void, int, int, int> mmv3(MOCKPP_PCHAR("mm3"), 0); + mockpp::ChainableMockMethod4<void, int, int, int, int> mmv4(MOCKPP_PCHAR("mm4"), 0); + mockpp::ChainableMockMethod5<void, int, int, int, int, int> mmv5(MOCKPP_PCHAR("mm5"), 0); + mockpp::ChainableMockMethod6<void, int, int, int, int, int, int> mmv6(MOCKPP_PCHAR("mm6"), 0); + + mockpp::ChainableMockMethod0<int> mmi0(MOCKPP_PCHAR("mm0"), 0); + mockpp::ChainableMockMethod1<int, int> mmi1(MOCKPP_PCHAR("mm1"), 0); + mockpp::ChainableMockMethod2<int, int, int> mmi2(MOCKPP_PCHAR("mm2"), 0); + mockpp::ChainableMockMethod3<int, int, int, int> mmi3(MOCKPP_PCHAR("mm3"), 0); + mockpp::ChainableMockMethod4<int, int, int, int, int> mmi4(MOCKPP_PCHAR("mm4"), 0); + mockpp::ChainableMockMethod5<int, int, int, int, int, int> mmi5(MOCKPP_PCHAR("mm5"), 0); + mockpp::ChainableMockMethod6<int, int, int, int, int, int, int> mmi6(MOCKPP_PCHAR("mm6"), 0); +} + + void ChainableMockMethod_test::test_parameter_0() { MyChainableMockObject_0 mcm(MOCKPP_PCHAR("chainable-object")); |