Class OpcUaTlsConnectorTest
- 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.OpcUaTlsConnectorTest
-
- All Implemented Interfaces:
test.de.iip_ecosphere.platform.connectors.MachineCommandInputTranslator.InputCustomizer,test.de.iip_ecosphere.platform.connectors.MachineDataOutputTranslator.OutputCustomizer
public class OpcUaTlsConnectorTest extends AbstractOpcUaConnectorTest
Tests the OPC UA connector (not secure, polling).- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.LoggerLOGGERprivate static TestServertestServer-
Fields inherited from class test.de.iip_ecosphere.platform.connectors.opcuav1.AbstractOpcUaConnectorTest
VENDOR_NAME2
-
-
Constructor Summary
Constructors Constructor Description OpcUaTlsConnectorTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
testServer
private static TestServer testServer
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Method Detail
-
init
public static void init() throws java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionSets the test up by starting an embedded OPC UA server.- Throws:
java.util.concurrent.ExecutionException- shall not occurjava.lang.InterruptedException- shall not occur
-
shutdown
public static void shutdown() throws java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionShuts down the test server.- Throws:
java.util.concurrent.ExecutionException- shall not occurjava.lang.InterruptedException- shall not occur
-
testWithPolling
public void testWithPolling() throws java.io.IOExceptionTests the connector in polling mode.- Throws:
java.io.IOException- in case that creating the connector fails
-
testWithNotifications
public void testWithNotifications() throws java.io.IOExceptionTests the connector in event-based mode.- Throws:
java.io.IOException- in case that creating the connector fails
-
-