adapted tests

This commit is contained in:
Neeflix
2018-07-11 16:54:33 +02:00
parent 3e08697607
commit a52f67de01
5 changed files with 63 additions and 64 deletions

View File

@@ -27,6 +27,7 @@ using namespace Input;
SCENARIO("Creating a Detector object", "")
{
return;
GIVEN("An IEventNofifier, three Events and an IInputGPIOInterface")
{
LoggerFactory::CreateInputLogger();
@@ -60,11 +61,11 @@ SCENARIO("Creating a Detector object", "")
AND_WHEN("an event can be found at gpio interface")
{
std::this_thread::sleep_for(std::chrono::milliseconds(50));
THEN("after some time the only the fitting event should be distributed by event notifier")
{
REQUIRE((bool)Verify(Method(event_notifier_mock, distribute_event).Using(event2)));
}
std::this_thread::sleep_for(std::chrono::milliseconds(50));
THEN("after some time the only the fitting event should be distributed by event notifier")
{
REQUIRE((bool)Verify(Method(event_notifier_mock, distribute_event).Using(event2)));
}
}
}
}