mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 13:21:53 +01:00
corrected namespace of automation tests (#534)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
parent
d775bf7a29
commit
a6a1d59cb4
@ -11,19 +11,6 @@
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.eclipse.smarthome.automation.integration.test;
|
||||
package org.openhab.core.automation.integration.test;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
import static org.junit.Assert.*;
|
||||
@ -23,21 +23,6 @@ import java.util.Set;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNull;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.eclipse.smarthome.automation.Action;
|
||||
import org.eclipse.smarthome.automation.Rule;
|
||||
import org.eclipse.smarthome.automation.RuleManager;
|
||||
import org.eclipse.smarthome.automation.RulePredicates;
|
||||
import org.eclipse.smarthome.automation.RuleRegistry;
|
||||
import org.eclipse.smarthome.automation.RuleStatus;
|
||||
import org.eclipse.smarthome.automation.RuleStatusInfo;
|
||||
import org.eclipse.smarthome.automation.Trigger;
|
||||
import org.eclipse.smarthome.automation.core.ManagedRuleProvider;
|
||||
import org.eclipse.smarthome.automation.events.RuleStatusInfoEvent;
|
||||
import org.eclipse.smarthome.automation.type.ActionType;
|
||||
import org.eclipse.smarthome.automation.type.Input;
|
||||
import org.eclipse.smarthome.automation.type.ModuleTypeRegistry;
|
||||
import org.eclipse.smarthome.automation.type.Output;
|
||||
import org.eclipse.smarthome.automation.type.TriggerType;
|
||||
import org.eclipse.smarthome.core.common.registry.ProviderChangeListener;
|
||||
import org.eclipse.smarthome.core.events.Event;
|
||||
import org.eclipse.smarthome.core.events.EventFilter;
|
||||
@ -58,6 +43,21 @@ import org.eclipse.smarthome.test.storage.VolatileStorageService;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.openhab.core.automation.Action;
|
||||
import org.openhab.core.automation.ManagedRuleProvider;
|
||||
import org.openhab.core.automation.Rule;
|
||||
import org.openhab.core.automation.RuleManager;
|
||||
import org.openhab.core.automation.RulePredicates;
|
||||
import org.openhab.core.automation.RuleRegistry;
|
||||
import org.openhab.core.automation.RuleStatus;
|
||||
import org.openhab.core.automation.RuleStatusInfo;
|
||||
import org.openhab.core.automation.Trigger;
|
||||
import org.openhab.core.automation.events.RuleStatusInfoEvent;
|
||||
import org.openhab.core.automation.type.ActionType;
|
||||
import org.openhab.core.automation.type.Input;
|
||||
import org.openhab.core.automation.type.ModuleTypeRegistry;
|
||||
import org.openhab.core.automation.type.Output;
|
||||
import org.openhab.core.automation.type.TriggerType;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.eclipse.smarthome.automation.integration.test;
|
||||
package org.openhab.core.automation.integration.test;
|
||||
|
||||
import static java.util.stream.Collectors.*;
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
@ -31,32 +31,6 @@ import java.util.stream.Stream;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNull;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.eclipse.smarthome.automation.Action;
|
||||
import org.eclipse.smarthome.automation.Condition;
|
||||
import org.eclipse.smarthome.automation.Rule;
|
||||
import org.eclipse.smarthome.automation.RuleManager;
|
||||
import org.eclipse.smarthome.automation.RuleProvider;
|
||||
import org.eclipse.smarthome.automation.RuleRegistry;
|
||||
import org.eclipse.smarthome.automation.RuleStatus;
|
||||
import org.eclipse.smarthome.automation.Trigger;
|
||||
import org.eclipse.smarthome.automation.Visibility;
|
||||
import org.eclipse.smarthome.automation.core.ManagedRuleProvider;
|
||||
import org.eclipse.smarthome.automation.core.util.ModuleBuilder;
|
||||
import org.eclipse.smarthome.automation.core.util.RuleBuilder;
|
||||
import org.eclipse.smarthome.automation.events.RuleAddedEvent;
|
||||
import org.eclipse.smarthome.automation.events.RuleRemovedEvent;
|
||||
import org.eclipse.smarthome.automation.events.RuleStatusInfoEvent;
|
||||
import org.eclipse.smarthome.automation.events.RuleUpdatedEvent;
|
||||
import org.eclipse.smarthome.automation.module.core.handler.GenericEventTriggerHandler;
|
||||
import org.eclipse.smarthome.automation.template.RuleTemplate;
|
||||
import org.eclipse.smarthome.automation.template.RuleTemplateProvider;
|
||||
import org.eclipse.smarthome.automation.template.Template;
|
||||
import org.eclipse.smarthome.automation.template.TemplateRegistry;
|
||||
import org.eclipse.smarthome.automation.type.ActionType;
|
||||
import org.eclipse.smarthome.automation.type.ModuleType;
|
||||
import org.eclipse.smarthome.automation.type.ModuleTypeProvider;
|
||||
import org.eclipse.smarthome.automation.type.ModuleTypeRegistry;
|
||||
import org.eclipse.smarthome.automation.type.TriggerType;
|
||||
import org.eclipse.smarthome.config.core.ConfigDescriptionParameter;
|
||||
import org.eclipse.smarthome.config.core.Configuration;
|
||||
import org.eclipse.smarthome.core.common.registry.ProviderChangeListener;
|
||||
@ -78,6 +52,32 @@ import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.openhab.core.automation.Action;
|
||||
import org.openhab.core.automation.Condition;
|
||||
import org.openhab.core.automation.ManagedRuleProvider;
|
||||
import org.openhab.core.automation.Rule;
|
||||
import org.openhab.core.automation.RuleManager;
|
||||
import org.openhab.core.automation.RuleProvider;
|
||||
import org.openhab.core.automation.RuleRegistry;
|
||||
import org.openhab.core.automation.RuleStatus;
|
||||
import org.openhab.core.automation.Trigger;
|
||||
import org.openhab.core.automation.Visibility;
|
||||
import org.openhab.core.automation.events.RuleAddedEvent;
|
||||
import org.openhab.core.automation.events.RuleRemovedEvent;
|
||||
import org.openhab.core.automation.events.RuleStatusInfoEvent;
|
||||
import org.openhab.core.automation.events.RuleUpdatedEvent;
|
||||
import org.openhab.core.automation.internal.module.handler.GenericEventTriggerHandler;
|
||||
import org.openhab.core.automation.template.RuleTemplate;
|
||||
import org.openhab.core.automation.template.RuleTemplateProvider;
|
||||
import org.openhab.core.automation.template.Template;
|
||||
import org.openhab.core.automation.template.TemplateRegistry;
|
||||
import org.openhab.core.automation.type.ActionType;
|
||||
import org.openhab.core.automation.type.ModuleType;
|
||||
import org.openhab.core.automation.type.ModuleTypeProvider;
|
||||
import org.openhab.core.automation.type.ModuleTypeRegistry;
|
||||
import org.openhab.core.automation.type.TriggerType;
|
||||
import org.openhab.core.automation.util.ModuleBuilder;
|
||||
import org.openhab.core.automation.util.RuleBuilder;
|
||||
import org.osgi.framework.Bundle;
|
||||
import org.osgi.framework.BundleException;
|
||||
import org.osgi.framework.FrameworkUtil;
|
||||
@ -395,7 +395,7 @@ public class AutomationIntegrationTest extends JavaOSGiTest {
|
||||
}, 3000, 100);
|
||||
|
||||
for (Bundle bundle : bundleContext.getBundles()) {
|
||||
if (bundle.getSymbolicName().equals("org.eclipse.smarthome.automation.sample.extension.json")) {
|
||||
if (bundle.getSymbolicName().equals("org.openhab.core.automation.sample.extension.json")) {
|
||||
bundle.uninstall();
|
||||
break;
|
||||
}
|
@ -10,19 +10,19 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.eclipse.smarthome.automation.integration.test;
|
||||
package org.openhab.core.automation.integration.test;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
import org.eclipse.smarthome.automation.type.ModuleTypeRegistry;
|
||||
import org.eclipse.smarthome.core.storage.StorageService;
|
||||
import org.eclipse.smarthome.test.java.JavaOSGiTest;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.openhab.core.automation.type.ModuleTypeRegistry;
|
||||
import org.osgi.framework.Bundle;
|
||||
import org.osgi.framework.BundleException;
|
||||
import org.osgi.framework.FrameworkEvent;
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.eclipse.smarthome.automation.module.core.internal;
|
||||
package org.openhab.core.automation.internal.module;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
@ -26,12 +26,6 @@ import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import org.eclipse.smarthome.automation.Rule;
|
||||
import org.eclipse.smarthome.automation.RuleManager;
|
||||
import org.eclipse.smarthome.automation.RuleRegistry;
|
||||
import org.eclipse.smarthome.automation.RuleStatus;
|
||||
import org.eclipse.smarthome.automation.core.util.ModuleBuilder;
|
||||
import org.eclipse.smarthome.automation.core.util.RuleBuilder;
|
||||
import org.eclipse.smarthome.config.core.Configuration;
|
||||
import org.eclipse.smarthome.core.common.registry.ProviderChangeListener;
|
||||
import org.eclipse.smarthome.core.events.Event;
|
||||
@ -51,6 +45,12 @@ import org.eclipse.smarthome.test.storage.VolatileStorageService;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.openhab.core.automation.Rule;
|
||||
import org.openhab.core.automation.RuleManager;
|
||||
import org.openhab.core.automation.RuleRegistry;
|
||||
import org.openhab.core.automation.RuleStatus;
|
||||
import org.openhab.core.automation.util.ModuleBuilder;
|
||||
import org.openhab.core.automation.util.RuleBuilder;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.eclipse.smarthome.automation.module.core.internal;
|
||||
package org.openhab.core.automation.internal.module;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
@ -26,17 +26,6 @@ import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import org.eclipse.smarthome.automation.Condition;
|
||||
import org.eclipse.smarthome.automation.Rule;
|
||||
import org.eclipse.smarthome.automation.RuleManager;
|
||||
import org.eclipse.smarthome.automation.RuleRegistry;
|
||||
import org.eclipse.smarthome.automation.RuleStatus;
|
||||
import org.eclipse.smarthome.automation.RuleStatusDetail;
|
||||
import org.eclipse.smarthome.automation.core.util.ModuleBuilder;
|
||||
import org.eclipse.smarthome.automation.core.util.RuleBuilder;
|
||||
import org.eclipse.smarthome.automation.events.RuleStatusInfoEvent;
|
||||
import org.eclipse.smarthome.automation.module.core.handler.CompareConditionHandler;
|
||||
import org.eclipse.smarthome.automation.type.ModuleTypeRegistry;
|
||||
import org.eclipse.smarthome.config.core.Configuration;
|
||||
import org.eclipse.smarthome.core.common.registry.ProviderChangeListener;
|
||||
import org.eclipse.smarthome.core.events.Event;
|
||||
@ -58,6 +47,17 @@ import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.openhab.core.automation.Condition;
|
||||
import org.openhab.core.automation.Rule;
|
||||
import org.openhab.core.automation.RuleManager;
|
||||
import org.openhab.core.automation.RuleRegistry;
|
||||
import org.openhab.core.automation.RuleStatus;
|
||||
import org.openhab.core.automation.RuleStatusDetail;
|
||||
import org.openhab.core.automation.events.RuleStatusInfoEvent;
|
||||
import org.openhab.core.automation.internal.module.handler.CompareConditionHandler;
|
||||
import org.openhab.core.automation.type.ModuleTypeRegistry;
|
||||
import org.openhab.core.automation.util.ModuleBuilder;
|
||||
import org.openhab.core.automation.util.RuleBuilder;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.eclipse.smarthome.automation.module.core.internal.provider;
|
||||
package org.openhab.core.automation.internal.module.provider;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
import static org.mockito.ArgumentMatchers.any;
|
||||
@ -22,24 +22,25 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.eclipse.smarthome.automation.AnnotatedActions;
|
||||
import org.eclipse.smarthome.automation.Visibility;
|
||||
import org.eclipse.smarthome.automation.annotation.ActionInput;
|
||||
import org.eclipse.smarthome.automation.annotation.ActionOutput;
|
||||
import org.eclipse.smarthome.automation.annotation.ActionScope;
|
||||
import org.eclipse.smarthome.automation.annotation.RuleAction;
|
||||
import org.eclipse.smarthome.automation.module.core.provider.AnnotationActionModuleTypeHelper;
|
||||
import org.eclipse.smarthome.automation.module.core.provider.i18n.ModuleTypeI18nService;
|
||||
import org.eclipse.smarthome.automation.type.ActionType;
|
||||
import org.eclipse.smarthome.automation.type.Input;
|
||||
import org.eclipse.smarthome.automation.type.ModuleType;
|
||||
import org.eclipse.smarthome.automation.type.Output;
|
||||
import org.eclipse.smarthome.config.core.ConfigConstants;
|
||||
import org.eclipse.smarthome.config.core.ConfigDescriptionParameter;
|
||||
import org.eclipse.smarthome.config.core.ParameterOption;
|
||||
import org.eclipse.smarthome.test.java.JavaTest;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.openhab.core.automation.AnnotatedActions;
|
||||
import org.openhab.core.automation.Visibility;
|
||||
import org.openhab.core.automation.annotation.ActionInput;
|
||||
import org.openhab.core.automation.annotation.ActionOutput;
|
||||
import org.openhab.core.automation.annotation.ActionScope;
|
||||
import org.openhab.core.automation.annotation.RuleAction;
|
||||
import org.openhab.core.automation.internal.module.provider.AnnotatedActionModuleTypeProvider;
|
||||
import org.openhab.core.automation.module.provider.AnnotationActionModuleTypeHelper;
|
||||
import org.openhab.core.automation.module.provider.i18n.ModuleTypeI18nService;
|
||||
import org.openhab.core.automation.type.ActionType;
|
||||
import org.openhab.core.automation.type.Input;
|
||||
import org.openhab.core.automation.type.ModuleType;
|
||||
import org.openhab.core.automation.type.Output;
|
||||
|
||||
/**
|
||||
* Tests for the {@link AnnotatedActionModuleTypeProvider}
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.eclipse.smarthome.automation.module.script.defaultscope.internal;
|
||||
package org.openhab.core.automation.module.script.defaultscope.internal;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
@ -20,11 +20,11 @@ import java.net.URL;
|
||||
import javax.script.ScriptEngine;
|
||||
import javax.script.ScriptException;
|
||||
|
||||
import org.eclipse.smarthome.automation.module.script.ScriptEngineContainer;
|
||||
import org.eclipse.smarthome.automation.module.script.ScriptEngineManager;
|
||||
import org.eclipse.smarthome.test.java.JavaOSGiTest;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.openhab.core.automation.module.script.ScriptEngineContainer;
|
||||
import org.openhab.core.automation.module.script.ScriptEngineManager;
|
||||
|
||||
/**
|
||||
* This tests the script modules
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.eclipse.smarthome.automation.module.script;
|
||||
package org.openhab.core.automation.module.script;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
import static org.junit.Assert.assertThat;
|
||||
@ -22,14 +22,6 @@ import java.util.Optional;
|
||||
import java.util.Set;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNull;
|
||||
import org.eclipse.smarthome.automation.Action;
|
||||
import org.eclipse.smarthome.automation.Condition;
|
||||
import org.eclipse.smarthome.automation.Rule;
|
||||
import org.eclipse.smarthome.automation.RuleManager;
|
||||
import org.eclipse.smarthome.automation.RuleRegistry;
|
||||
import org.eclipse.smarthome.automation.RuleStatus;
|
||||
import org.eclipse.smarthome.automation.RuleStatusInfo;
|
||||
import org.eclipse.smarthome.automation.Trigger;
|
||||
import org.eclipse.smarthome.core.common.registry.ProviderChangeListener;
|
||||
import org.eclipse.smarthome.core.events.Event;
|
||||
import org.eclipse.smarthome.core.events.EventFilter;
|
||||
@ -47,6 +39,14 @@ import org.eclipse.smarthome.test.java.JavaOSGiTest;
|
||||
import org.eclipse.smarthome.test.storage.VolatileStorageService;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.openhab.core.automation.Action;
|
||||
import org.openhab.core.automation.Condition;
|
||||
import org.openhab.core.automation.Rule;
|
||||
import org.openhab.core.automation.RuleManager;
|
||||
import org.openhab.core.automation.RuleRegistry;
|
||||
import org.openhab.core.automation.RuleStatus;
|
||||
import org.openhab.core.automation.RuleStatusInfo;
|
||||
import org.openhab.core.automation.Trigger;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.eclipse.smarthome.automation.module.timer.internal;
|
||||
package org.openhab.core.automation.module.timer.internal;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
import static org.junit.Assert.assertThat;
|
||||
@ -25,18 +25,6 @@ import java.util.Random;
|
||||
import java.util.Set;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNull;
|
||||
import org.eclipse.smarthome.automation.Action;
|
||||
import org.eclipse.smarthome.automation.Condition;
|
||||
import org.eclipse.smarthome.automation.Rule;
|
||||
import org.eclipse.smarthome.automation.RuleManager;
|
||||
import org.eclipse.smarthome.automation.RuleRegistry;
|
||||
import org.eclipse.smarthome.automation.RuleStatus;
|
||||
import org.eclipse.smarthome.automation.RuleStatusInfo;
|
||||
import org.eclipse.smarthome.automation.Trigger;
|
||||
import org.eclipse.smarthome.automation.core.util.ModuleBuilder;
|
||||
import org.eclipse.smarthome.automation.core.util.RuleBuilder;
|
||||
import org.eclipse.smarthome.automation.module.core.handler.ItemCommandActionHandler;
|
||||
import org.eclipse.smarthome.automation.module.core.handler.ItemStateTriggerHandler;
|
||||
import org.eclipse.smarthome.config.core.Configuration;
|
||||
import org.eclipse.smarthome.core.common.registry.ProviderChangeListener;
|
||||
import org.eclipse.smarthome.core.events.Event;
|
||||
@ -55,6 +43,18 @@ import org.eclipse.smarthome.test.java.JavaOSGiTest;
|
||||
import org.eclipse.smarthome.test.storage.VolatileStorageService;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.openhab.core.automation.Action;
|
||||
import org.openhab.core.automation.Condition;
|
||||
import org.openhab.core.automation.Rule;
|
||||
import org.openhab.core.automation.RuleManager;
|
||||
import org.openhab.core.automation.RuleRegistry;
|
||||
import org.openhab.core.automation.RuleStatus;
|
||||
import org.openhab.core.automation.RuleStatusInfo;
|
||||
import org.openhab.core.automation.Trigger;
|
||||
import org.openhab.core.automation.internal.module.handler.ItemCommandActionHandler;
|
||||
import org.openhab.core.automation.internal.module.handler.ItemStateTriggerHandler;
|
||||
import org.openhab.core.automation.util.ModuleBuilder;
|
||||
import org.openhab.core.automation.util.RuleBuilder;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.eclipse.smarthome.automation.module.timer.internal;
|
||||
package org.openhab.core.automation.module.timer.internal;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
import static org.junit.Assert.assertThat;
|
||||
@ -21,12 +21,12 @@ import java.util.Calendar;
|
||||
import java.util.Collections;
|
||||
import java.util.Locale;
|
||||
|
||||
import org.eclipse.smarthome.automation.Condition;
|
||||
import org.eclipse.smarthome.automation.core.util.ModuleBuilder;
|
||||
import org.eclipse.smarthome.automation.module.timer.handler.DayOfWeekConditionHandler;
|
||||
import org.eclipse.smarthome.automation.type.ModuleTypeRegistry;
|
||||
import org.eclipse.smarthome.config.core.Configuration;
|
||||
import org.junit.Test;
|
||||
import org.openhab.core.automation.Condition;
|
||||
import org.openhab.core.automation.internal.module.handler.DayOfWeekConditionHandler;
|
||||
import org.openhab.core.automation.type.ModuleTypeRegistry;
|
||||
import org.openhab.core.automation.util.ModuleBuilder;
|
||||
|
||||
/**
|
||||
* This tests the dayOfWeek Condition.
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.eclipse.smarthome.automation.module.timer.internal;
|
||||
package org.openhab.core.automation.module.timer.internal;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
import static org.junit.Assert.assertThat;
|
||||
@ -24,18 +24,6 @@ import java.util.Map;
|
||||
import java.util.Random;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNull;
|
||||
import org.eclipse.smarthome.automation.Action;
|
||||
import org.eclipse.smarthome.automation.Rule;
|
||||
import org.eclipse.smarthome.automation.RuleManager;
|
||||
import org.eclipse.smarthome.automation.RuleRegistry;
|
||||
import org.eclipse.smarthome.automation.RuleStatus;
|
||||
import org.eclipse.smarthome.automation.RuleStatusDetail;
|
||||
import org.eclipse.smarthome.automation.RuleStatusInfo;
|
||||
import org.eclipse.smarthome.automation.Trigger;
|
||||
import org.eclipse.smarthome.automation.core.util.ModuleBuilder;
|
||||
import org.eclipse.smarthome.automation.core.util.RuleBuilder;
|
||||
import org.eclipse.smarthome.automation.module.timer.handler.GenericCronTriggerHandler;
|
||||
import org.eclipse.smarthome.automation.type.ModuleTypeRegistry;
|
||||
import org.eclipse.smarthome.config.core.Configuration;
|
||||
import org.eclipse.smarthome.core.common.registry.ProviderChangeListener;
|
||||
import org.eclipse.smarthome.core.events.Event;
|
||||
@ -49,6 +37,18 @@ import org.eclipse.smarthome.test.java.JavaOSGiTest;
|
||||
import org.eclipse.smarthome.test.storage.VolatileStorageService;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.openhab.core.automation.Action;
|
||||
import org.openhab.core.automation.Rule;
|
||||
import org.openhab.core.automation.RuleManager;
|
||||
import org.openhab.core.automation.RuleRegistry;
|
||||
import org.openhab.core.automation.RuleStatus;
|
||||
import org.openhab.core.automation.RuleStatusDetail;
|
||||
import org.openhab.core.automation.RuleStatusInfo;
|
||||
import org.openhab.core.automation.Trigger;
|
||||
import org.openhab.core.automation.internal.module.handler.GenericCronTriggerHandler;
|
||||
import org.openhab.core.automation.type.ModuleTypeRegistry;
|
||||
import org.openhab.core.automation.util.ModuleBuilder;
|
||||
import org.openhab.core.automation.util.RuleBuilder;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -10,7 +10,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.eclipse.smarthome.automation.module.timer.internal;
|
||||
package org.openhab.core.automation.module.timer.internal;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
import static org.junit.Assert.assertThat;
|
||||
@ -21,13 +21,13 @@ import java.time.temporal.ChronoUnit;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.eclipse.smarthome.automation.Condition;
|
||||
import org.eclipse.smarthome.automation.core.util.ModuleBuilder;
|
||||
import org.eclipse.smarthome.automation.module.timer.handler.DayOfWeekConditionHandler;
|
||||
import org.eclipse.smarthome.automation.module.timer.handler.TimeOfDayConditionHandler;
|
||||
import org.eclipse.smarthome.automation.type.ModuleTypeRegistry;
|
||||
import org.eclipse.smarthome.config.core.Configuration;
|
||||
import org.junit.Test;
|
||||
import org.openhab.core.automation.Condition;
|
||||
import org.openhab.core.automation.internal.module.handler.DayOfWeekConditionHandler;
|
||||
import org.openhab.core.automation.internal.module.handler.TimeOfDayConditionHandler;
|
||||
import org.openhab.core.automation.type.ModuleTypeRegistry;
|
||||
import org.openhab.core.automation.util.ModuleBuilder;
|
||||
|
||||
/**
|
||||
* This tests the TimeOfDay Condition.
|
@ -10,18 +10,18 @@
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
*/
|
||||
package org.eclipse.smarthome.automation.module.timer.internal;
|
||||
package org.openhab.core.automation.module.timer.internal;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
import static org.junit.Assert.assertThat;
|
||||
|
||||
import org.eclipse.smarthome.automation.RuleRegistry;
|
||||
import org.eclipse.smarthome.automation.module.timer.handler.TimeOfDayTriggerHandler;
|
||||
import org.eclipse.smarthome.automation.type.ModuleTypeRegistry;
|
||||
import org.eclipse.smarthome.test.java.JavaOSGiTest;
|
||||
import org.eclipse.smarthome.test.storage.VolatileStorageService;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.openhab.core.automation.RuleRegistry;
|
||||
import org.openhab.core.automation.internal.module.handler.TimeOfDayTriggerHandler;
|
||||
import org.openhab.core.automation.type.ModuleTypeRegistry;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -6,19 +6,6 @@
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
|
@ -6,19 +6,6 @@
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
|
@ -6,19 +6,6 @@
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
|
@ -6,13 +6,6 @@
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
|
@ -6,19 +6,6 @@
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
|
@ -6,19 +6,6 @@
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
|
@ -6,19 +6,6 @@
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||
<attributes>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
|
Loading…
Reference in New Issue
Block a user