Class PahoMqttV3TransportConnectorTest

java.lang.Object
test.de.iip_ecosphere.platform.transport.mqttv3.PahoMqttV3TransportConnectorTest

public class PahoMqttV3TransportConnectorTest extends Object
Tests the PahoMqttV3TransportConnector.
Author:
Holger Eichelberger, SSE
  • Constructor Details

    • PahoMqttV3TransportConnectorTest

      public PahoMqttV3TransportConnectorTest()
  • Method Details

    • init

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

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

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

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