package testkit
- Alphabetic
- Public
- Protected
Type Members
- class ActorSystemResource extends ExternalResource
- final case class DefaultHostInfo(host: Host, securedConnection: Boolean) extends Product with Serializable
- abstract class JUnitRouteTest extends JUnitRouteTestBase
- 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.
- 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. - 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. - 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.
- 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.
- trait WSTestRequestBuilding extends AnyRef