play.api

test

package test

Contains test helpers.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. test
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait DefaultAwaitTimeout extends AnyRef

  2. trait EssentialActionCaller extends AnyRef

  3. case class FakeApplication(path: File = new java.io.File("."), classloader: ClassLoader = ..., additionalPlugins: Seq[String] = Nil, withoutPlugins: Seq[String] = Nil, additionalConfiguration: Map[String, _] = Map.empty, withGlobal: Option[GlobalSettings] = None, withRoutes: PartialFunction[(String, String), Handler] = PartialFunction.empty) extends Application with WithDefaultConfiguration with WithDefaultGlobal with WithDefaultPlugins with Product with Serializable

  4. case class FakeHeaders(data: Seq[(String, Seq[String])] = Seq.empty) extends Headers with Product with Serializable

    Fake HTTP headers implementation.

    Fake HTTP headers implementation.

    data

    Headers data.

  5. case class FakeRequest[A](method: String, uri: String, headers: FakeHeaders, body: A, remoteAddress: String = "127.0.0.1", version: String = "HTTP/1.1", id: Long = 666, tags: Map[String, String] = Map.empty[String, String], secure: Boolean = false) extends Request[A] with Product with Serializable

    Fake HTTP request implementation.

    Fake HTTP request implementation.

    A

    The body type.

    method

    The request HTTP method.

    uri

    The request uri.

    headers

    The request HTTP headers.

    body

    The request body.

    remoteAddress

    The client IP.

  6. trait FutureAwaits extends AnyRef

  7. trait PlayRunners extends AnyRef

    Helper functions to run tests.

  8. trait PlaySpecification extends Specification with NoTimeConversions with PlayRunners with HeaderNames with Status with HttpProtocol with DefaultAwaitTimeout with ResultExtractors with Writeables with RouteInvokers with FutureAwaits

    Play specs2 specification.

    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.

  9. type Port = Int

    Provided as an implicit by WithServer and WithBrowser.

  10. trait ResultExtractors extends AnyRef

  11. trait RouteInvokers extends EssentialActionCaller

  12. case class TestBrowser(webDriver: WebDriver, baseUrl: Option[String]) extends FluentAdapter with Product with Serializable

    A test browser (Using Selenium WebDriver) with the FluentLenium API (https://github.

    A test browser (Using Selenium WebDriver) with the FluentLenium API (https://github.com/Fluentlenium/FluentLenium).

    webDriver

    The WebDriver instance to use.

  13. case class TestServer(port: Int, application: FakeApplication = FakeApplication(), sslPort: Option[Int] = None) extends Product with Serializable

    A test Netty web server.

    A test Netty web server.

    port

    HTTP port to bind on.

    application

    The FakeApplication to load in this server.

  14. abstract class WithApplication extends Around with Scope

    Used to run specs within the context of a running application.

  15. abstract class WithBrowser[WEBDRIVER <: WebDriver] extends Around with Scope

    Used to run specs within the context of a running server, and using a web browser

  16. abstract class WithServer extends Around with Scope

    Used to run specs within the context of a running server.

  17. trait Writeables extends AnyRef

Value Members

  1. object FakeRequest extends Serializable

    Helper utilities to build FakeRequest values.

  2. object Helpers extends PlayRunners with HeaderNames with Status with HttpProtocol with DefaultAwaitTimeout with ResultExtractors with Writeables with EssentialActionCaller with RouteInvokers with FutureAwaits

  3. object PlayRunners

  4. object TestBrowser extends Serializable

    Helper utilities to build TestBrowsers

  5. object WebDriverFactory

Inherited from AnyRef

Inherited from Any

Ungrouped