Class 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 Detail

      • testServer

        private static TestServer testServer
      • LOGGER

        private static final org.slf4j.Logger LOGGER
    • Constructor Detail

      • OpcUaTlsConnectorTest

        public OpcUaTlsConnectorTest()
    • Method Detail

      • init

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

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

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

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