initial commit
This commit is contained in:
36
tests/test_connections.cpp
Normal file
36
tests/test_connections.cpp
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
#include <thread>
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#include <catch2/catch.hpp>
|
||||
#include <DatabaseHelper.hpp>
|
||||
|
||||
#include <loguru.hpp>
|
||||
|
||||
SCENARIO("Testing the SimCore Sensor")
|
||||
{
|
||||
std::string url = "localhost";
|
||||
DatabaseHelper database(url,"test","123456","test");
|
||||
database.connect();
|
||||
database.getAvailableTables();
|
||||
|
||||
GIVEN("different Attributes for a Track in different forms")
|
||||
{
|
||||
|
||||
// LOG_S(INFO)<<database.connect();
|
||||
|
||||
WHEN("constructing Track Object with data")
|
||||
{
|
||||
|
||||
THEN("check if Track attributes are correct")
|
||||
{
|
||||
// REQUIRE("hello world" == "hello world");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} //THEN
|
||||
} // WHEN
|
||||
} // GIVEN
|
||||
} //SCENARIO
|
||||
Reference in New Issue
Block a user