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
  • Field Details

    • testServer

      private static TestServer testServer
    • LOGGER

      private static final de.iip_ecosphere.platform.support.logging.Logger LOGGER
  • Constructor Details

    • OpcUaConnectorTest

      public OpcUaConnectorTest()
  • Method Details

    • init

      public static void init() throws ExecutionException, InterruptedException
      Sets the test up by starting an embedded OPC UA server.
      Throws:
      ExecutionException - shall not occur
      InterruptedException - shall not occur
    • shutdown

      public static void shutdown() throws ExecutionException, InterruptedException
      Shuts down the test server.
      Throws:
      ExecutionException - shall not occur
      InterruptedException - shall not occur
    • testWithPolling

      public void testWithPolling() throws IOException
      Tests the connector in polling mode.
      Throws:
      IOException - in case that creating the connector fails
    • testWithBrowsePath

      public void testWithBrowsePath() throws IOException
      Tests browse name as browse path (IFW).
      Throws:
      IOException - in case of I/O problems, shall not occur
    • testWithBrowsePath

      private void testWithBrowsePath(boolean withNotification) throws IOException
      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

      public void testWithNotifications() throws IOException
      Tests the connector in event-based mode.
      Throws:
      IOException - in case that creating the connector fails