org.apache.pekko.http.javadsl.testkit
Members list
Type members
Classlikes
Attributes
- Source
- JUnitRouteTest.scala
- Supertypes
Attributes
- Source
- DefaultHostInfo.scala
- Supertypes
Attributes
- Source
- JUnitRouteTest.scala
- Supertypes
-
class JUnitRouteTestBaseclass RouteTesttrait WSTestRequestBuildingclass AllDirectivesclass TimeoutDirectivesclass WebSocketDirectivesclass SecurityDirectivesclass SchemeDirectivesclass RouteDirectivesclass RespondWithDirectivesclass RangeDirectivesclass PathDirectivesclass ParameterDirectivesclass MiscDirectivesclass MethodDirectivesclass MarshallingDirectivesclass HostDirectivesclass AttributeDirectivesclass HeaderDirectivesclass FutureDirectivesclass FormFieldDirectivesclass FileUploadDirectivesclass ExecutionDirectivesclass DebuggingDirectivesclass CookieDirectivesclass CodingDirectivesclass CacheConditionDirectivesclass BasicDirectivesclass Objecttrait Matchableclass AnyShow all
A RouteTest that uses JUnit assertions. ActorSystem and Materializer are provided as an org.junit.rules.ExternalResource and their lifetime is automatically managed.
A RouteTest that uses JUnit assertions. ActorSystem and Materializer are provided as an org.junit.rules.ExternalResource and their lifetime is automatically managed.
Attributes
- Source
- JUnitRouteTest.scala
- Supertypes
-
class RouteTesttrait WSTestRequestBuildingclass AllDirectivesclass TimeoutDirectivesclass WebSocketDirectivesclass SecurityDirectivesclass SchemeDirectivesclass RouteDirectivesclass RespondWithDirectivesclass RangeDirectivesclass PathDirectivesclass ParameterDirectivesclass MiscDirectivesclass MethodDirectivesclass MarshallingDirectivesclass HostDirectivesclass AttributeDirectivesclass HeaderDirectivesclass FutureDirectivesclass FormFieldDirectivesclass FileUploadDirectivesclass ExecutionDirectivesclass DebuggingDirectivesclass CookieDirectivesclass CodingDirectivesclass CacheConditionDirectivesclass BasicDirectivesclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class JUnitRouteTest
A base class to create route tests for testing libraries. An implementation needs to provide code to provide and shutdown an pekko.actor.ActorSystem, pekko.stream.Materializer, and scala.concurrent.ExecutionContextExecutor.
A base class to create route tests for testing libraries. An implementation needs to provide code to provide and shutdown an pekko.actor.ActorSystem, pekko.stream.Materializer, and scala.concurrent.ExecutionContextExecutor.
See JUnitRouteTest
for an example of a concrete implementation.
Attributes
- Source
- RouteTest.scala
- Supertypes
-
trait WSTestRequestBuildingclass AllDirectivesclass TimeoutDirectivesclass WebSocketDirectivesclass SecurityDirectivesclass SchemeDirectivesclass RouteDirectivesclass RespondWithDirectivesclass RangeDirectivesclass PathDirectivesclass ParameterDirectivesclass MiscDirectivesclass MethodDirectivesclass MarshallingDirectivesclass HostDirectivesclass AttributeDirectivesclass HeaderDirectivesclass FutureDirectivesclass FormFieldDirectivesclass FileUploadDirectivesclass ExecutionDirectivesclass DebuggingDirectivesclass CookieDirectivesclass CodingDirectivesclass CacheConditionDirectivesclass BasicDirectivesclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class JUnitRouteTestBaseclass JUnitRouteTest
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.
Attributes
- Source
- TestRoute.scala
- Supertypes
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.
Attributes
- Source
- TestRouteResult.scala
- Supertypes
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.
Attributes
- Companion
- object
- Source
- WSProbe.scala
- Supertypes
Attributes
- Companion
- class
- Source
- WSProbe.scala
- Supertypes
- Self type
-
WSProbe.type
Attributes
- Source
- WSTestRequestBuilding.scala
- Supertypes
- Known subtypes