Class KalixIntegrationTestKitSupport

Object
kalix.spring.testkit.KalixIntegrationTestKitSupport

@TestInstance(PER_CLASS) public abstract class KalixIntegrationTestKitSupport extends Object
This class provided the necessary infrastructure to run Kalix integration test for projects built with the Java SDK. Users should let their test classes extends this class.

Requires Docker for starting a local instance of the Kalix Runtime.

This class wires-up a local Kalix application using the user's defined Kalix components.

Users can interact with their components using the WebClient that is made available by the test ApplicationContext.

On test teardown, the Kalix application and the Kalix Runtime (docker container) will be stopped.

  • Field Details

    • componentClient

      @Autowired protected kalix.javasdk.client.ComponentClient componentClient
    • timeout

      protected Duration timeout
  • Constructor Details

    • KalixIntegrationTestKitSupport

      public KalixIntegrationTestKitSupport()
  • Method Details

    • afterAll

      @AfterAll public void afterAll()