Class OpcUaConnectorTest
java.lang.Object
test.de.iip_ecosphere.platform.connectors.AbstractInformationModelConnectorTest<de.iip_ecosphere.platform.connectors.opcuav1.DataItem>
test.de.iip_ecosphere.platform.connectors.opcuav1.AbstractOpcUaConnectorTest
test.de.iip_ecosphere.platform.connectors.opcuav1.OpcUaConnectorTest
- All Implemented Interfaces:
test.de.iip_ecosphere.platform.connectors.MachineCommandInputTranslator.InputCustomizer,test.de.iip_ecosphere.platform.connectors.MachineDataOutputTranslator.OutputCustomizer
public class OpcUaConnectorTest extends AbstractOpcUaConnectorTest
Tests the OPC UA connector (not secure, polling.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.LoggerLOGGERprivate static TestServertestServerFields inherited from class test.de.iip_ecosphere.platform.connectors.opcuav1.AbstractOpcUaConnectorTest
VENDOR_NAME2 -
Constructor Summary
Constructors Constructor Description OpcUaConnectorTest() -
Method Summary
Modifier and Type Method Description static voidinit()Sets the test up by starting an embedded OPC UA server.static voidshutdown()Shuts down the test server.voidtestWithNotifications()Tests the connector in event-based mode.voidtestWithPolling()Tests the connector in polling mode.Methods inherited from class test.de.iip_ecosphere.platform.connectors.opcuav1.AbstractOpcUaConnectorTest
additionalFromActions, afterActions, assertAdditionalProperties, createConnector, dispose, getConnectorDescriptor, getConnectorParameter, getQNameOperationStartMachine, getQNameOperationStopMachine, getQNameVarLotSize, getQNameVarPowerConsumption, getSetup, getTopLevelModelPartName, getVendor, initializeModelAccess, setSetup
-
Field Details
-
testServer
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
OpcUaConnectorTest
public OpcUaConnectorTest()
-
-
Method Details
-
init
Sets the test up by starting an embedded OPC UA server.- Throws:
ExecutionException- shall not occurInterruptedException- shall not occur
-
shutdown
Shuts down the test server.- Throws:
ExecutionException- shall not occurInterruptedException- shall not occur
-
testWithPolling
Tests the connector in polling mode.- Throws:
IOException- in case that creating the connector fails
-
testWithNotifications
Tests the connector in event-based mode.- Throws:
IOException- in case that creating the connector fails
-