Packages

trait PlayRunners extends HttpVerbs

Helper functions to run tests.

Source
Helpers.scala
Linear Supertypes
HttpVerbs, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PlayRunners
  2. HttpVerbs
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val DELETE: String
    Definition Classes
    HttpVerbs
  5. val FIREFOX: Class[FirefoxDriver]
  6. val GET: String
    Definition Classes
    HttpVerbs
  7. val HEAD: String
    Definition Classes
    HttpVerbs
  8. val HTMLUNIT: Class[HtmlUnitDriver]
  9. val OPTIONS: String
    Definition Classes
    HttpVerbs
  10. val PATCH: String
    Definition Classes
    HttpVerbs
  11. val POST: String
    Definition Classes
    HttpVerbs
  12. val PUT: String
    Definition Classes
    HttpVerbs
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. lazy val baseApplicationBuilder: GuiceApplicationBuilder

    The base builder used in the running method.

  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  20. def inMemoryDatabase(name: String = "default", options: Map[String, String] = Map.empty[String, String]): Map[String, String]

    Constructs a in-memory (h2) database configuration to add to an Application.

  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  25. def running[T](testServer: TestServer, webDriver: WebDriver)(block: (TestBrowser) => T): T

    Executes a block of code in a running server, with a test browser.

  26. def running[T, WEBDRIVER <: WebDriver](testServer: TestServer, webDriver: Class[WEBDRIVER])(block: (TestBrowser) => T): T

    Executes a block of code in a running server, with a test browser.

  27. def running[T](testServer: TestServer)(block: => T): T

    Executes a block of code in a running server.

  28. def running[T](builder: (GuiceApplicationBuilder) => GuiceApplicationBuilder)(block: (Application) => T): T
  29. def running[T](app: Application)(block: => T): T

    Executes a block of code in a running application.

  30. def running[T]()(block: (Application) => T): T
  31. def runningWithPort[T](testServer: TestServer, webDriver: WebDriver)(block: (TestBrowser, Int) => T): T

    Executes a block of code in a running server, with a test browser and a port.

    Executes a block of code in a running server, with a test browser and a port. If available the http port will be used first, before falling back to the https port.

  32. def runningWithPort[T, WEBDRIVER <: WebDriver](testServer: TestServer, webDriver: Class[WEBDRIVER])(block: (TestBrowser, Int) => T): T

    Executes a block of code in a running server, with a test browser and a port.

  33. def runningWithPort[T](testServer: TestServer)(block: (Int) => T): T

    Executes a block of code in a running server, with a port.

    Executes a block of code in a running server, with a port. If available the http port will be used first, before falling back to the https port.

  34. def shouldRunSequentially(app: Application): Boolean

    Tests using servers share a test server port so we default to true.

    Tests using servers share a test server port so we default to true.

    Attributes
    protected
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def testServerAddress: String
  37. def testServerHttpsPort: Option[Int]
  38. def testServerPort: Int

    The port to use for a test server.

    The port to use for a test server. Defaults to a random port. May be configured using the system property testserver.port

  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from HttpVerbs

Inherited from AnyRef

Inherited from Any

Ungrouped