How long we should wait for something that we expect *not* to happen, e.g.
How long we should wait for something that we expect *not* to happen, e.g. waiting to make sure that a channel is *not* closed by some concurrent process.
NegativeTimeout is a separate type to a normal Timeout because we'll want to set it to a lower value. This is because in normal usage we'll need to wait for the full length of time to show that nothing has happened in that time. If the value is too high then we'll spend a lot of time waiting during normal usage. If it is too low, however, we may miss events that occur after the timeout has finished. This is a necessary tradeoff.
Where possible, tests should avoid using a NegativeTimeout. Tests will often know exactly when an event should occur. In this case they can perform a check for the event immediately rather than using using NegativeTimeout.
Block until a Promise is redeemed with the specified timeout.
Block until a Promise is redeemed with the specified timeout.
Block until a Promise is redeemed.
Block until a Promise is redeemed.
The base builder used in the running method.
The base builder used in the running method.
Execute an play.api.mvc.EssentialAction.
Execute an play.api.mvc.EssentialAction.
The body is serialised using the implicit writable, so that the action body parser can deserialise it.
Execute an play.api.mvc.EssentialAction.
Execute an play.api.mvc.EssentialAction.
The body is serialised using the implicit writable, so that the action body parser can deserialise it.
Extracts the Charset of this Result value.
Extracts the Charset of this Result value.
Extracts the content as bytes.
Extracts the content as bytes.
Extracts the content as bytes.
Extracts the content as bytes.
Extracts the content as Json.
Extracts the content as Json.
Extracts the content as Json.
Extracts the content as Json.
Extracts the content as String.
Extracts the content as String.
Extracts the content as String.
Extracts the content as String.
Extracts the Content-Type of this Result value.
Extracts the Content-Type of this Result value.
Extracts the Content-Type of this Content value.
Extracts the Content-Type of this Content value.
Extracts the Cookies of this Result value.
Extracts the Cookies of this Result value.
The default await timeout.
The default await timeout. Override this to change it.
Extracts the Flash values of this Result value.
Extracts the Flash values of this Result value.
Extracts an Header value of this Result value.
Extracts an Header value of this Result value.
Extracts all Headers of this Result value.
Extracts all Headers of this Result value.
Constructs a in-memory (h2) database configuration to add to a FakeApplication.
Constructs a in-memory (h2) database configuration to add to a FakeApplication.
Extracts the Location header of this Result value if this Result is a Redirect.
Extracts the Location header of this Result value if this Result is a Redirect.
Use the HttpRequestHandler to determine the Action to call for this request and execute it.
Use the HttpRequestHandler to determine the Action to call for this request and execute it.
The body is serialised using the implicit writable, so that the action body parser can deserialise it.
Use the HttpRequestHandler to determine the Action to call for this request and execute it.
Use the HttpRequestHandler to determine the Action to call for this request and execute it.
The body is serialised using the implicit writable, so that the action body parser can deserialise it.
Executes a block of code in a running server, with a test browser.
Executes a block of code in a running server, with a test browser.
Executes a block of code in a running server, with a test browser.
Executes a block of code in a running server, with a test browser.
Executes a block of code in a running server.
Executes a block of code in a running server.
Executes a block of code in a running application.
Executes a block of code in a running application.
Extracts the Session of this Result value.
Extracts the Session of this Result value. Extracts the Session from this Result value.
Extracts the Status code of this Result value.
Extracts the Status code of this Result value.
The port to use for a test server.
The port to use for a test server. Defaults to 19001. May be configured using the system property testserver.port
(Since version 3.0.0) Use TOO_MANY_REQUESTS instead
Use the HttpRequestHandler to determine the Action to call for this request and execute it.
Use the HttpRequestHandler to determine the Action to call for this request and execute it.
The body is serialised using the implicit writable, so that the action body parser can deserialise it.
(Since version 2.5.0) Use the version that takes an application
Use the HttpRequestHandler to determine the Action to call for this request and execute it.
Use the HttpRequestHandler to determine the Action to call for this request and execute it.
The body is serialised using the implicit writable, so that the action body parser can deserialise it.
(Since version 2.5.0) Use the version that takes an application
Play specs2 specification.
This trait excludes some of the mixins provided in the default specs2 specification that clash with Play helpers methods. It also mixes in the Play test helpers and types for convenience.