Packages

package testkit

Content Hierarchy
Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. class ActorSystemResource extends ExternalResource
  2. final case class DefaultHostInfo(host: Host, securedConnection: Boolean) extends Product with Serializable
  3. abstract class JUnitRouteTest extends JUnitRouteTestBase
  4. abstract class JUnitRouteTestBase extends RouteTest

    A RouteTest that uses JUnit assertions.

    A RouteTest that uses JUnit assertions. ActorSystem and Materializer are provided as an org.junit.rules.ExternalResource and their lifetime is automatically managed.

  5. abstract class RouteTest extends AllDirectives with WSTestRequestBuilding

    A base class to create route tests for testing libraries.

    A base class to create route tests for testing libraries. An implementation needs to provide code to provide and shutdown an akka.actor.ActorSystem, akka.stream.Materializer, and scala.concurrent.ExecutionContextExecutor.

    See JUnitRouteTest for an example of a concrete implementation.

  6. trait TestRoute extends AnyRef

    A wrapped route that has a run method to run a request through the underlying route to create a TestResponse.

    A wrapped route that has a run method to run a request through the underlying route to create a TestResponse.

    A TestRoute is created by deriving a test class from the concrete RouteTest implementation for your testing framework (like JUnitRouteTest for JUnit) and then using its testRoute method to wrap a route with testing support.

  7. abstract class TestRouteResult extends AnyRef

    A wrapper for route results.

    A wrapper for route results.

    To support the testkit API, a third-party testing library needs to implement this class and provide implementations for the abstract assertion methods.

  8. class WSProbe extends AnyRef

    A WSProbe is a probe that implements a Flow[Message, Message, Unit] for testing websocket code.

    A WSProbe is a probe that implements a Flow[Message, Message, Unit] for testing websocket code.

    Requesting elements is handled automatically.

  9. trait WSTestRequestBuilding extends AnyRef

Value Members

  1. object WSProbe

Ungrouped