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
Tests the OPC UA connector (not secure, polling).
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classJust a test class with a single variable.static classInput translator forOpcUaConnectorTest.VarData.static classOutput translator forOpcUaConnectorTest.VarData.Nested classes/interfaces inherited from class test.de.iip_ecosphere.platform.connectors.AbstractInformationModelConnectorTest
test.de.iip_ecosphere.platform.connectors.AbstractInformationModelConnectorTest.Step -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final de.iip_ecosphere.platform.support.logging.Loggerprivate static TestServerFields inherited from class test.de.iip_ecosphere.platform.connectors.opcuav1.AbstractOpcUaConnectorTest
VENDOR_NAME2 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidinit()Sets the test up by starting an embedded OPC UA server.static voidshutdown()Shuts down the test server.voidTests browse name as browse path (IFW).private voidtestWithBrowsePath(boolean withNotification) Tests browse name as browse path (IFW).voidTests the connector in event-based mode.voidTests the connector in polling mode.Methods inherited from class test.de.iip_ecosphere.platform.connectors.opcuav1.AbstractOpcUaConnectorTest
additionalFromActions, afterActions, assertAdditionalProperties, createConnector, dispose, getConnectorDescriptor, getConnectorParameter, getEnumPathToFields, getQNameOperationStartMachine, getQNameOperationStopMachine, getQNameVarLotSize, getQNameVarPowerConsumption, getSetup, getTopLevelModelPartName, getVendor, initializeModelAccess, setSetupMethods inherited from class test.de.iip_ecosphere.platform.connectors.AbstractInformationModelConnectorTest
block, testConnectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface test.de.iip_ecosphere.platform.connectors.MachineCommandInputTranslator.InputCustomizer
assertOperationExceptions, assertSetExceptions, getQNameStart, getQNameStopMethods inherited from interface test.de.iip_ecosphere.platform.connectors.MachineDataOutputTranslator.OutputCustomizer
assertNotExistingProperties
-
Field Details
-
testServer
-
LOGGER
private static final de.iip_ecosphere.platform.support.logging.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
-
testWithBrowsePath
Tests browse name as browse path (IFW).- Throws:
IOException- in case of I/O problems, shall not occur
-
testWithBrowsePath
Tests browse name as browse path (IFW).- Parameters:
withNotification- whether we run this test with notifications- Throws:
IOException- in case of I/O problems, shall not occur
-
testWithNotifications
Tests the connector in event-based mode.- Throws:
IOException- in case that creating the connector fails
-