Class PahoMqttV3TransportConnectorTest


  • public class PahoMqttV3TransportConnectorTest
    extends java.lang.Object
    Tests the PahoMqttV3TransportConnector.
    Author:
    Holger Eichelberger, SSE
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void doTest​(test.de.iip_ecosphere.platform.transport.AbstractTransportConnectorTest.TransportParameterConfigurer configurer)
      Performs the test.
      static void init()
      Sets up the tests.
      void testPahoConnector()
      Tests the connector through explicitly setting/resetting the factory implementation.
      void testPahoTlsConnector()
      Tests the TLS connector through explicitly setting/resetting the factory implementation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PahoMqttV3TransportConnectorTest

        public PahoMqttV3TransportConnectorTest()
    • Method Detail

      • init

        public static void init()
        Sets up the tests.
      • testPahoConnector

        public void testPahoConnector()
                               throws java.io.IOException
        Tests the connector through explicitly setting/resetting the factory implementation. Builds up a TestHiveMqServer so that the test is self-contained.
        Throws:
        java.io.IOException - in case that connection/communication fails
      • testPahoTlsConnector

        public void testPahoTlsConnector()
                                  throws java.io.IOException
        Tests the TLS connector through explicitly setting/resetting the factory implementation. Builds up a TestHiveMqServer so that the test is self-contained.
        Throws:
        java.io.IOException - in case that connection/communication fails
      • doTest

        private void doTest​(test.de.iip_ecosphere.platform.transport.AbstractTransportConnectorTest.TransportParameterConfigurer configurer)
                     throws java.io.IOException
        Performs the test.
        Parameters:
        configurer - the test configurer
        Throws:
        java.io.IOException - in case that connection/communication fails