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.
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.
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.
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.
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.