java.lang.Object
test.de.iip_ecosphere.platform.simpleStream.spring.TestWithBroker

public class TestWithBroker extends Object
Executes the streams in Test with as well as a broker. The broker is prescribed by the environment this test shall be executed within, i.e., services.spring which instantiates the Qpid AMQP server. Requires the Qpid configuration file in src/test and packaged as ZIP into the services jar file (see POM). We do not rely on MQTT here, because moquette is not stable enough and Hivemq requires JDK 11.
Author:
Holger Eichelberger, SSE
  • Constructor Details

    • TestWithBroker

      public TestWithBroker()
  • Method Details

    • extractBrokerConfig

      private static void extractBrokerConfig(String zipLoc, String unpacked)
      Tries to extract the broker configuration.
      Parameters:
      zipLoc - the location where to read the zipped file from the classpath
      unpacked - the unpackaged configuration in the source project
    • main

      public static void main(String[] args)
      Main function.
      Parameters:
      args - command line arguments