File indexing completed on 2024-04-06 12:03:18
0001 #ifndef CondTools_RunInfo_TestBase_H
0002 #define CondTools_RunInfo_TestBase_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include <string>
0013 #include "CoralKernel/Context.h"
0014 #include "CoralBase/MessageStream.h"
0015
0016
0017
0018 namespace coral {
0019 class IConnection;
0020 class ISession;
0021 }
0022
0023 class TestBase {
0024 public:
0025 TestBase();
0026 virtual ~TestBase();
0027 virtual void run() = 0;
0028 void setVerbosityLevel(coral::MsgLevel level);
0029
0030 protected:
0031 coral::ISession* connect(const std::string& connectionString, const std::string& user, const std::string& password);
0032
0033 private:
0034
0035 coral::IConnection* m_connection;
0036 };
0037
0038 #endif