Class: IntegrationTestkit

akkaserverless. IntegrationTestkit


new IntegrationTestkit( [options])

Integration Testkit.

Parameters:
Name Type Argument Description
options any <optional>

Options for the testkit and Akka Serverless service.

Methods


addComponent(component)

Add the given component to this testkit.

Parameters:
Name Type Description
component module:akkaserverless.Component

The component to add.

Returns:

This testkit.

Type
module:akkaserverless.IntegrationTestkit

shutdown(callback)

Shut down the testkit.

Parameters:
Name Type Description
callback module:akkaserverless.IntegrationTestkit~shutdownCallback

Shutdown callback, accepting possible error.


start(callback)

Start the testkit, with the registered components.

Parameters:
Name Type Description
callback module:akkaserverless.IntegrationTestkit~startCallback

Start callback, accepting possible error.

Type Definitions


shutdownCallback( [error])

Callback for shutdown, accepting possible error.

Parameters:
Name Type Argument Description
error Error <optional>

Error on shutting down the testkit.


startCallback( [error])

Callback for start, accepting possible error.

Parameters:
Name Type Argument Description
error Error <optional>

Error on starting the testkit.