Package io.openems.edge.controller.test
Class ControllerTest
java.lang.Object
io.openems.edge.common.test.AbstractComponentTest<ControllerTest,Controller>
io.openems.edge.controller.test.ControllerTest
Provides a generic test framework for OpenEMS
Controller
s.-
Nested Class Summary
Nested classes/interfaces inherited from class io.openems.edge.common.test.AbstractComponentTest
AbstractComponentTest.ChannelValue, AbstractComponentTest.TestCase
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method is executed afterEdgeEventConstants.TOPIC_CYCLE_BEFORE_CONTROLLERS
and beforeEdgeEventConstants.TOPIC_CYCLE_AFTER_CONTROLLERS
.protected ControllerTest
self()
Gets an instance of the correct subclass of myself.Methods inherited from class io.openems.edge.common.test.AbstractComponentTest
activate, addComponent, addReference, getSut, handleEvent, next, next, onAfterControllers, onAfterProcessImage, onAfterWrite, onBeforeControllers, onBeforeProcessImage, onBeforeWrite, onExecuteWrite
-
Constructor Details
-
ControllerTest
public ControllerTest(Controller controller, OpenemsComponent... components) throws OpenemsException - Throws:
OpenemsException
-
-
Method Details
-
onExecuteControllers
Description copied from class:AbstractComponentTest
This method is executed afterEdgeEventConstants.TOPIC_CYCLE_BEFORE_CONTROLLERS
and beforeEdgeEventConstants.TOPIC_CYCLE_AFTER_CONTROLLERS
.- Overrides:
onExecuteControllers
in classAbstractComponentTest<ControllerTest,
Controller> - Throws:
OpenemsError.OpenemsNamedException
- on error
-
self
Description copied from class:AbstractComponentTest
Gets an instance of the correct subclass of myself.- Specified by:
self
in classAbstractComponentTest<ControllerTest,
Controller> - Returns:
- myself
-