Stabelized automation integration test (#1944)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
pull/1947/head
Kai Kreuzer 2020-12-16 14:13:04 +01:00 committed by GitHub
parent 0dd4cc97fe
commit 2b9f890831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -1460,4 +1460,13 @@ public class RuleEngineImpl implements RuleManager, RegistryChangeListener<Modul
}
return false;
}
/**
* Returns whether the rule engine has been started
*
* @return true, if the rule engine has been started
*/
public boolean isStarted() {
return started;
}
}

View File

@ -170,6 +170,10 @@ public class AutomationIntegrationTest extends JavaOSGiTest {
// start rule engine
((RuleEngineImpl) ruleEngine).onReadyMarkerAdded(new ReadyMarker("", ""));
waitForAssert(() -> {
assertThat(((RuleEngineImpl) ruleEngine).isStarted(), is(true));
}, 5000, 1000);
logger.info("@Before.finish");
}