18 #ifndef BERRYUITESTCALLER_H_
19 #define BERRYUITESTCALLER_H_
21 #include <cppunit/TestCase.h>
22 #include <cppunit/Guards.h>
28 template <
class Fixture>
33 typedef void (Fixture::*TestMethod)();
39 _fixture(new Fixture(name))
46 (_fixture.get()->*_test)();
51 _fixture.get()->DoSetUp();
56 _fixture.get()->DoTearDown();
61 std::unique_ptr<Fixture> _fixture;
68 #define CppUnit_addUITest(suite, cls, mth) \
69 suite->addTest(new berry::UITestCaller<cls>(#mth, &cls::mth))
Follow Up Storage - Class to facilitate loading/accessing structured follow-up data.
UITestCaller(const std::string &name, TestMethod test)