1 #ifndef _beos_test_suite_h_ 2 #define _beos_test_suite_h_ 3 4 #include <cppunit/Test.h> 5 #include <map> 6 #include <string> 7 8 class CppUnit::TestResult; 9 10 //! Groups together a set of tests for a given kit. 11 class BTestSuite : public CppUnit::Test { 12 public: 13 BTestSuite( std::string name = "" ); 14 virtual ~BTestSuite(); 15 16 virtual void run( CppUnit::TestResult *result ); 17 virtual int countTestCases() const; 18 virtual std::string getName() const; 19 virtual std::string toString() const; 20 21 virtual void addTest(std::string name, CppUnit::Test *test); 22 virtual void deleteContents(); 23 24 const std::map<std::string, CppUnit::Test*> &getTests() const; 25 26 protected: 27 std::map<std::string, CppUnit::Test*> fTests; 28 const std::string fName; 29 30 private: 31 BTestSuite(const BTestSuite &other); 32 BTestSuite& operator=(const BTestSuite &other); 33 34 }; 35 36 #endif // _beos_test_listener_h_ 37