diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-09-24 02:55:01 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-09-24 03:05:59 +0100 |
commit | c4cc49a6f291b6a6ceeb1debbec71358b0ea5747 (patch) | |
tree | e760517e42f36e1febdea9de6bcd0499de1df485 | |
parent | Database mocking base classes migrated in. (diff) | |
download | project2-c4cc49a6f291b6a6ceeb1debbec71358b0ea5747.tar.bz2 project2-c4cc49a6f291b6a6ceeb1debbec71358b0ea5747.tar.xz project2-c4cc49a6f291b6a6ceeb1debbec71358b0ea5747.zip |
Add the core test library for testing connector implementations
-rw-r--r-- | project2/sql/unittests/testCore.cpp | 17 | ||||
-rw-r--r-- | project2/sql/unittests/testCore.h | 21 |
2 files changed, 0 insertions, 38 deletions
diff --git a/project2/sql/unittests/testCore.cpp b/project2/sql/unittests/testCore.cpp deleted file mode 100644 index 440d676..0000000 --- a/project2/sql/unittests/testCore.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include "testCore.h" -#include <testOptionsSource.h> -#include <definedDirs.h> - -TestCore::TestCore() : - testInt(43), - testDouble(3.14), - testString("Some C String"), - testBool(false), - testDateTime(boost::posix_time::from_time_t(1430530593)), - testInterval(boost::posix_time::time_duration(1, 2, 3)) -{ - TestOptionsSource::LoadTestOptions({ - { "common.datasourceRoot", (RootDir / "datasources").string() }, - }); -} - diff --git a/project2/sql/unittests/testCore.h b/project2/sql/unittests/testCore.h deleted file mode 100644 index 0a667d6..0000000 --- a/project2/sql/unittests/testCore.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef PROJECT2_SQL_UNITTEST_CORE -#define PROJECT2_SQL_UNITTEST_CORE - -#include <commonObjects.h> -#include <variableType.h> -#include <appInstance.h> - -class TestCore : public CommonObjects, AppInstance { - public: - TestCore(); - - int testInt; - double testDouble; - std::string testString; - bool testBool; - boost::posix_time::ptime testDateTime; - boost::posix_time::time_duration testInterval; -}; - -#endif - |