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. case class FakeApplication(path: File = new java.io.File("."), classloader: ClassLoader = ..., additionalPlugins: Seq[String] = immutable.this.Nil, withoutPlugins: Seq[String] = immutable.this.Nil, additionalConfiguration: Map[String, _] = ..., withGlobal: Option[GlobalSettings] = scala.None) extends Application with WithDefaultConfiguration with WithDefaultGlobal with WithDefaultPlugins with Product with Serializable

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

    Fake HTTP headers implementation.

  4. 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] = ...) extends Request[A] with Product with Serializable

    Fake HTTP request implementation.

  5. trait FutureAwaits extends AnyRef

  6. trait PlaySpecification extends Specification with NoTimeConversions with HeaderNames with Status with DefaultAwaitTimeout with FutureAwaits

    Play specs2 specification.

  7. type Port = Int

    Provided as an implicit by WithServer and WithBrowser.

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

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

    A test Netty web server.

  10. abstract class WithApplication extends Around with Scope

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

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

  12. abstract class WithServer extends Around with Scope

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

Value Members

  1. object FakeRequest extends Serializable

    Helper utilities to build FakeRequest values.

  2. object Helpers extends Status with HeaderNames

    Helper functions to run tests.

  3. object TestBrowser extends Serializable

    Helper utilities to build TestBrowsers

  4. object WebDriverFactory

Inherited from AnyRef

Inherited from Any

Ungrouped