Class ServerStartStopServiceManagerTest


  • @SpringBootTest(classes=Config.class)
    @TestPropertySource(locations="classpath:iipecosphere.yml")
    @ContextConfiguration(initializers=Initializer.class)
    @Import(de.iip_ecosphere.platform.services.spring.SpringCloudServiceSetup.class)
    public class ServerStartStopServiceManagerTest
    extends AbstractTestServiceManager
    Tests SpringCloudServiceManager. We assume that the test artifacts are prepared for MQTT v3.
    Author:
    Holger Eichelberger, SSE
    • Constructor Detail

      • ServerStartStopServiceManagerTest

        public ServerStartStopServiceManagerTest()
    • Method Detail

      • shutdown

        public static void shutdown()
        Shuts down client and test server.
      • testSimpleStartStop

        public void testSimpleStartStop()
                                 throws java.util.concurrent.ExecutionException,
                                        java.io.IOException
        Tests a simple start-stop cycle of the SpringCloudServiceManager with two processes. This test requires an actual version of test.simpleStream.spring in target/jars - Maven downloads the artifact in the compile phase.
        Throws:
        java.util.concurrent.ExecutionException - shall not occur for successful test
        java.io.IOException - shall not occur for successful test