#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.getValidity() == true); REQUIRE(Name.getWriteTime() < std::chrono::duration_cast(std::chrono::system_clock::now().time_since_epoch()).count()); } //THEN } // WHEN } // GIVEN } //SCENARIO