Search in sources :

Example 1 with ModuleTypeRegistry

use of org.eclipse.smarthome.automation.type.ModuleTypeRegistry in project smarthome by eclipse.

the class RuntimeRuleTest method modeTypesRegistration.

@Test
public void modeTypesRegistration() {
    final ModuleTypeRegistry mtr = getService(ModuleTypeRegistry.class);
    waitForAssert(() -> {
        Assert.assertNotNull(mtr.get("core.GenericEventTrigger"));
        Assert.assertNotNull(mtr.get("core.GenericEventCondition"));
        Assert.assertNotNull(mtr.get("core.ItemStateChangeTrigger"));
        Assert.assertNotNull(mtr.get("core.ItemStateUpdateTrigger"));
        Assert.assertNotNull(mtr.get(CompareConditionHandler.MODULE_TYPE));
    });
}
Also used : ModuleTypeRegistry(org.eclipse.smarthome.automation.type.ModuleTypeRegistry) JavaOSGiTest(org.eclipse.smarthome.test.java.JavaOSGiTest) Test(org.junit.Test)

Aggregations

ModuleTypeRegistry (org.eclipse.smarthome.automation.type.ModuleTypeRegistry)1 JavaOSGiTest (org.eclipse.smarthome.test.java.JavaOSGiTest)1 Test (org.junit.Test)1