1 #ifndef CPPUNIT_TESTCALLER_H // -*- C++ -*-
2 #define CPPUNIT_TESTCALLER_H
10 #if defined(CPPUNIT_USE_TYPEINFO_NAME)
25 NoExceptionExpected();
33 template<
class ExceptionType>
34 struct ExpectedExceptionTraits
36 static void expectedException()
38 #if defined(CPPUNIT_USE_TYPEINFO_NAME)
40 "expected exception not thrown",
41 "Expected exception type: " +
44 throw Exception(
"expected exception not thrown" );
56 struct ExpectedExceptionTraits<NoExceptionExpected>
58 static void expectedException()
105 template <
class Fixture>
159 TestCaller(std::string name, std::function<
void()> test_function, Fixture* fixture):
190 return "TestCaller " +
getName();
207 #endif // CPPUNIT_TESTCALLER_H