-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96b514c
commit 37914dd
Showing
1 changed file
with
14 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,24 +10,21 @@ | |
* it under the terms of the GNU General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* | ||
* You should have received a copy of the GNU General Public | ||
* License along with this program. If not, see | ||
* <http://www.gnu.org/licenses/gpl-3.0.html>. | ||
* #L% | ||
*/ | ||
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
import org.junit.jupiter.api.Disabled; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.Timeout; | ||
import org.openbase.app.test.agent.AbstractBCOAgentManagerTest; | ||
import org.junit.jupiter.api.Test; | ||
import org.openbase.bco.dal.control.layer.unit.LightSensorController; | ||
import org.openbase.bco.dal.control.layer.unit.MotionDetectorController; | ||
import org.openbase.bco.dal.lib.state.States; | ||
|
@@ -39,29 +36,26 @@ | |
import org.openbase.bco.dal.remote.layer.unit.Units; | ||
import org.openbase.bco.dal.remote.layer.unit.location.LocationRemote; | ||
import org.openbase.bco.dal.remote.layer.unit.util.UnitStateAwaiter; | ||
import org.openbase.bco.dal.visual.action.BCOActionInspector; | ||
import org.openbase.bco.registry.mock.MockRegistry; | ||
import org.openbase.jps.core.JPService; | ||
import org.openbase.jps.preset.JPDebugMode; | ||
import org.openbase.jps.preset.JPVerbose; | ||
import org.openbase.jul.exception.CouldNotPerformException; | ||
import org.openbase.jul.exception.NotAvailableException; | ||
import org.openbase.jul.extension.type.processing.MultiLanguageTextProcessor; | ||
import org.openbase.type.domotic.action.ActionDescriptionType.ActionDescription; | ||
import org.openbase.type.domotic.action.ActionPriorityType.ActionPriority.Priority; | ||
import org.openbase.type.domotic.state.IlluminanceStateType.IlluminanceState; | ||
import org.openbase.type.domotic.state.MotionStateType.MotionState.State; | ||
import org.openbase.type.domotic.unit.dal.LightSensorDataType.LightSensorData; | ||
import org.slf4j.LoggerFactory; | ||
import org.openbase.type.domotic.service.ServiceTemplateType.ServiceTemplate.ServiceType; | ||
import org.openbase.type.domotic.state.IlluminanceStateType.IlluminanceState; | ||
import org.openbase.type.domotic.state.MotionStateType.MotionState; | ||
import org.openbase.type.domotic.state.MotionStateType.MotionState.State; | ||
import org.openbase.type.domotic.state.PowerStateType.PowerState; | ||
import org.openbase.type.domotic.state.PresenceStateType.PresenceState; | ||
import org.openbase.type.domotic.unit.UnitConfigType.UnitConfig; | ||
import org.openbase.type.domotic.unit.UnitTemplateType.UnitTemplate.UnitType; | ||
import org.openbase.type.domotic.unit.dal.ColorableLightDataType.ColorableLightData; | ||
import org.openbase.type.domotic.unit.dal.LightSensorDataType.LightSensorData; | ||
import org.openbase.type.domotic.unit.dal.MotionDetectorDataType.MotionDetectorData; | ||
import org.openbase.type.domotic.unit.location.LocationDataType.LocationData; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
/** | ||
* * @author <a href="mailto:[email protected]">Timo Michalski</a> | ||
|
@@ -88,12 +82,12 @@ public class PresenceLightAgentTest extends AbstractBCOAgentManagerTest { | |
//@BeforeAll //uncomment to enable debug mode | ||
public static void showActionInspector() throws Throwable { | ||
|
||
JPService.registerProperty(JPDebugMode.class, true); | ||
JPService.registerProperty(JPVerbose.class, true); | ||
// JPService.registerProperty(JPDebugMode.class, true); | ||
// JPService.registerProperty(JPVerbose.class, true); | ||
|
||
// uncomment to visualize action inspector during tests | ||
String[] args = {}; | ||
new Thread(() -> BCOActionInspector.main(args)).start(); | ||
// String[] args = {}; | ||
// new Thread(() -> BCOActionInspector.main(args)).start(); | ||
} | ||
|
||
@Override | ||
|
@@ -220,7 +214,7 @@ public void testPresenceLightAgent() throws Exception { | |
for (ActionDescription actionDescription : colorableLightRemote.requestData().get().getActionList()) { | ||
|
||
// ignore termination action because its always on the stack | ||
if(actionDescription.getPriority() == Priority.TERMINATION) { | ||
if (actionDescription.getPriority() == Priority.TERMINATION) { | ||
continue; | ||
} | ||
|
||
|