#include #define CATCH_CONFIG_MAIN #include #include #include #include // SimCore::Identifier OwnID, SimCore::Identifier ParentID, SimCore::SensorKinds SensorKind,std::uint32_t GroundTruthPort, std::uint32_t ParentPort,std::string ParentIPAddress SCENARIO("Testing the SimCore Sensor") { GIVEN("different Attributes for a Track in different forms") { SimCore::Data Name; Name.setValue("hello world"); WHEN("constructing Track Object with data") { THEN("check if Track attributes are correct") { REQUIRE(Name.getValue() == "hello world"); REQUIRE(Name.isValid() == true); std::this_thread::sleep_for(std::chrono::milliseconds(100)); REQUIRE(Name.getWriteTime() < std::chrono::duration_cast(std::chrono::system_clock::now().time_since_epoch()).count()); } //THEN } // WHEN } // GIVEN } //SCENARIO