play.api.test

Helpers

object Helpers extends Status with HeaderNames

Helper functions to run tests.

Linear Supertypes
HeaderNames, Status, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Helpers
  2. HeaderNames
  3. Status
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. val ACCEPT : String

    Definition Classes
    HeaderNames
  7. val ACCEPTED : Int

    Definition Classes
    Status
  8. val ACCEPT_CHARSET : String

    Definition Classes
    HeaderNames
  9. val ACCEPT_ENCODING : String

    Definition Classes
    HeaderNames
  10. val ACCEPT_LANGUAGE : String

    Definition Classes
    HeaderNames
  11. val ACCEPT_RANGES : String

    Definition Classes
    HeaderNames
  12. val AGE : String

    Definition Classes
    HeaderNames
  13. val ALLOW : String

    Definition Classes
    HeaderNames
  14. val AUTHORIZATION : String

    Definition Classes
    HeaderNames
  15. val BAD_GATEWAY : Int

    Definition Classes
    Status
  16. val BAD_REQUEST : Int

    Definition Classes
    Status
  17. val CACHE_CONTROL : String

    Definition Classes
    HeaderNames
  18. val CONFLICT : Int

    Definition Classes
    Status
  19. val CONNECTION : String

    Definition Classes
    HeaderNames
  20. val CONTENT_DISPOSITION : String

    Definition Classes
    HeaderNames
  21. val CONTENT_ENCODING : String

    Definition Classes
    HeaderNames
  22. val CONTENT_LANGUAGE : String

    Definition Classes
    HeaderNames
  23. val CONTENT_LENGTH : String

    Definition Classes
    HeaderNames
  24. val CONTENT_LOCATION : String

    Definition Classes
    HeaderNames
  25. val CONTENT_MD5 : String

    Definition Classes
    HeaderNames
  26. val CONTENT_RANGE : String

    Definition Classes
    HeaderNames
  27. val CONTENT_TRANSFER_ENCODING : String

    Definition Classes
    HeaderNames
  28. val CONTENT_TYPE : String

    Definition Classes
    HeaderNames
  29. val CONTINUE : Int

    Definition Classes
    Status
  30. val COOKIE : String

    Definition Classes
    HeaderNames
  31. val CREATED : Int

    Definition Classes
    Status
  32. val DATE : String

    Definition Classes
    HeaderNames
  33. val DELETE : String

  34. val ETAG : String

    Definition Classes
    HeaderNames
  35. val EXPECT : String

    Definition Classes
    HeaderNames
  36. val EXPECTATION_FAILED : Int

    Definition Classes
    Status
  37. val EXPIRES : String

    Definition Classes
    HeaderNames
  38. val FIREFOX : Class[FirefoxDriver]

  39. val FORBIDDEN : Int

    Definition Classes
    Status
  40. val FOUND : Int

    Definition Classes
    Status
  41. val FROM : String

    Definition Classes
    HeaderNames
  42. val GATEWAY_TIMEOUT : Int

    Definition Classes
    Status
  43. val GET : String

  44. val GONE : Int

    Definition Classes
    Status
  45. val HEAD : String

  46. val HOST : String

    Definition Classes
    HeaderNames
  47. val HTMLUNIT : Class[HtmlUnitDriver]

  48. val HTTP_VERSION_NOT_SUPPORTED : Int

    Definition Classes
    Status
  49. val IF_MATCH : String

    Definition Classes
    HeaderNames
  50. val IF_MODIFIED_SINCE : String

    Definition Classes
    HeaderNames
  51. val IF_NONE_MATCH : String

    Definition Classes
    HeaderNames
  52. val IF_RANGE : String

    Definition Classes
    HeaderNames
  53. val IF_UNMODIFIED_SINCE : String

    Definition Classes
    HeaderNames
  54. val INTERNAL_SERVER_ERROR : Int

    Definition Classes
    Status
  55. val LAST_MODIFIED : String

    Definition Classes
    HeaderNames
  56. val LENGTH_REQUIRED : Int

    Definition Classes
    Status
  57. val LOCATION : String

    Definition Classes
    HeaderNames
  58. val MAX_FORWARDS : String

    Definition Classes
    HeaderNames
  59. val METHOD_NOT_ALLOWED : Int

    Definition Classes
    Status
  60. val MOVED_PERMANENTLY : Int

    Definition Classes
    Status
  61. val MULTIPLE_CHOICES : Int

    Definition Classes
    Status
  62. val NON_AUTHORITATIVE_INFORMATION : Int

    Definition Classes
    Status
  63. val NOT_ACCEPTABLE : Int

    Definition Classes
    Status
  64. val NOT_FOUND : Int

    Definition Classes
    Status
  65. val NOT_IMPLEMENTED : Int

    Definition Classes
    Status
  66. val NOT_MODIFIED : Int

    Definition Classes
    Status
  67. val NO_CONTENT : Int

    Definition Classes
    Status
  68. val OK : Int

    Definition Classes
    Status
  69. val PARTIAL_CONTENT : Int

    Definition Classes
    Status
  70. val PAYMENT_REQUIRED : Int

    Definition Classes
    Status
  71. val POST : String

  72. val PRAGMA : String

    Definition Classes
    HeaderNames
  73. val PRECONDITION_FAILED : Int

    Definition Classes
    Status
  74. val PROXY_AUTHENTICATE : String

    Definition Classes
    HeaderNames
  75. val PROXY_AUTHENTICATION_REQUIRED : Int

    Definition Classes
    Status
  76. val PROXY_AUTHORIZATION : String

    Definition Classes
    HeaderNames
  77. val PUT : String

  78. val RANGE : String

    Definition Classes
    HeaderNames
  79. val REFERER : String

    Definition Classes
    HeaderNames
  80. val REQUESTED_RANGE_NOT_SATISFIABLE : Int

    Definition Classes
    Status
  81. val REQUEST_ENTITY_TOO_LARGE : Int

    Definition Classes
    Status
  82. val REQUEST_TIMEOUT : Int

    Definition Classes
    Status
  83. val REQUEST_URI_TOO_LONG : Int

    Definition Classes
    Status
  84. val RESET_CONTENT : Int

    Definition Classes
    Status
  85. val RETRY_AFTER : String

    Definition Classes
    HeaderNames
  86. val SEE_OTHER : Int

    Definition Classes
    Status
  87. val SERVER : String

    Definition Classes
    HeaderNames
  88. val SERVICE_UNAVAILABLE : Int

    Definition Classes
    Status
  89. val SET_COOKIE : String

    Definition Classes
    HeaderNames
  90. val SET_COOKIE2 : String

    Definition Classes
    HeaderNames
  91. val SWITCHING_PROTOCOLS : Int

    Definition Classes
    Status
  92. val TE : String

    Definition Classes
    HeaderNames
  93. val TEMPORARY_REDIRECT : Int

    Definition Classes
    Status
  94. val TOO_MANY_REQUEST : Int

    Definition Classes
    Status
  95. val TRAILER : String

    Definition Classes
    HeaderNames
  96. val TRANSFER_ENCODING : String

    Definition Classes
    HeaderNames
  97. val UNAUTHORIZED : Int

    Definition Classes
    Status
  98. val UNSUPPORTED_MEDIA_TYPE : Int

    Definition Classes
    Status
  99. val UPGRADE : String

    Definition Classes
    HeaderNames
  100. val USER_AGENT : String

    Definition Classes
    HeaderNames
  101. val USE_PROXY : Int

    Definition Classes
    Status
  102. val VARY : String

    Definition Classes
    HeaderNames
  103. val VIA : String

    Definition Classes
    HeaderNames
  104. val WARNING : String

    Definition Classes
    HeaderNames
  105. val WWW_AUTHENTICATE : String

    Definition Classes
    HeaderNames
  106. val X_FORWARDED_FOR : String

    Definition Classes
    HeaderNames
  107. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  108. def await [T] (p: Promise[T], timeout: Long, unit: TimeUnit): T

    Block until a Promise is redeemed with the specified timeout.

  109. def await [T] (p: Promise[T]): T

    Block until a Promise is redeemed.

  110. def charset (of: Result): Option[String]

    Extracts the Charset of this Result value.

  111. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  112. def contentAsBytes (of: Result): Array[Byte]

    Extracts the content as bytes.

  113. def contentAsBytes (of: Content): Array[Byte]

    Extracts the content as bytes.

  114. def contentAsString (of: Result): String

    Extracts the content as String.

  115. def contentAsString (of: Content): String

    Extracts the content as String.

  116. def contentType (of: Result): Option[String]

    Extracts the Content-Type of this Result value.

  117. def contentType (of: Content): String

    Extracts the Content-Type of this Content value.

  118. def cookies (of: Result): Cookies

    Extracts the Cookies of this Result value.

  119. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  120. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  121. def evolutionFor (dbName: String, path: File = new java.io.File(".")): Unit

    Apply pending evolutions for the given DB.

  122. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  123. def flash (of: Result): Flash

    Extracts the Flash values of this Result value.

  124. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  125. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  126. def header (header: String, of: Result): Option[String]

    Extracts an Header value of this Result value.

  127. def headers (of: Result): Map[String, String]

    Extracts all Headers of this Result value.

  128. def inMemoryDatabase (name: String = "default"): Map[String, String]

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

  129. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  130. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  131. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  132. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  133. def redirectLocation (of: Result): Option[String]

    Extracts the Location header of this Result value if this Result is a Redirect.

  134. def routeAndCall [T, ROUTER <: Routes] (router: Class[ROUTER], request: FakeRequest[T]): Option[Result]

    Use the Router to determine the Action to call for this request and executes it.

  135. def routeAndCall [T] (request: FakeRequest[T]): Option[Result]

    Use the Router to determine the Action to call for this request and executes it.

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

  137. def running [T] (testServer: TestServer)(block: ⇒ T): T

    Executes a block of code in a running server.

  138. def running [T] (fakeApp: FakeApplication)(block: ⇒ T): T

    Executes a block of code in a running application.

  139. def session (of: Result): Session

    Extracts the Session of this Result value.

    Extracts the Session of this Result value. Extracts the Session from this Result value.

  140. def status (of: Result): Int

    Extracts the Status code of this Result value.

  141. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  142. def toString (): String

    Definition Classes
    AnyRef → Any
  143. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  144. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  145. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from HeaderNames

Inherited from Status

Inherited from AnyRef

Inherited from Any