org.scalatra.test

ScalatraTests

trait ScalatraTests extends AnyRef

Provides a framework-agnostic way to test your Scalatra app. You probably want to extend this with either org.scalatra.test.scalatest.ScalatraSuite or org.scalatra.test.specs.ScalatraSpecification.

Cookies are crudely supported within session blocks. No attempt is made to match domains, paths, or max-ages; the request sends a Cookie header to match whatever Set-Cookie call it received on the previous response.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ScalatraTests
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. def tester : ServletTester

    Attributes
    abstract

Concrete 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. def addFilter (filter: Class[_ <: javax.servlet.Filter], path: String, dispatches: EnumSet[DispatcherType]): FilterHolder

  7. def addFilter (filter: Class[_ <: javax.servlet.Filter], path: String): FilterHolder

  8. def addFilter (filter: Filter, path: String, dispatches: EnumSet[DispatcherType]): FilterHolder

  9. def addFilter (filter: Filter, path: String): FilterHolder

  10. def addServlet (servlet: Class[_ <: javax.servlet.http.HttpServlet], path: String): ServletHolder

  11. def addServlet (servlet: HttpServlet, path: String): Unit

  12. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  13. def body : String

  14. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def connect [A] (uri: String, params: Iterable[(String, String)] = Seq.empty, headers: Map[String, String] = Map.empty)(f: ⇒ A): A

  16. def delete [A] (uri: String, params: Iterable[(String, String)] = Seq.empty, headers: Map[String, String] = Map.empty)(f: ⇒ A): A

  17. def eq (arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  19. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. def get [A] (uri: String, params: Iterable[(String, String)] = Seq.empty, headers: Map[String, String] = Map.empty)(f: ⇒ A): A

  21. def get [A] (uri: String, params: (String, String)*)(f: ⇒ A): A

  22. def get [A] (uri: String)(f: ⇒ A): A

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

    Attributes
    final
    Definition Classes
    AnyRef
  24. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  25. def head [A] (uri: String, params: Iterable[(String, String)] = Seq.empty, headers: Map[String, String] = Map.empty)(f: ⇒ A): A

  26. def head [A] (uri: String, params: (String, String)*)(f: ⇒ A): A

  27. def head [A] (uri: String)(f: ⇒ A): A

  28. def header : header

  29. implicit def httpTesterToScalatraHttpTester (t: HttpTester): ScalatraHttpTester

    Attributes
    implicit
  30. def isInstanceOf [T0] : Boolean

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  34. def options [A] (uri: String, params: Iterable[(String, String)] = Seq.empty, headers: Map[String, String] = Map.empty)(f: ⇒ A): A

  35. def patch [A] (uri: String, body: String = "", headers: Map[String, String] = Map.empty)(f: ⇒ A): A

  36. def patch [A] (uri: String, params: Iterable[(String, String)], headers: Map[String, String])(f: ⇒ A): A

  37. def patch [A] (uri: String, params: Iterable[(String, String)])(f: ⇒ A): A

  38. def patch [A] (uri: String, params: (String, String)*)(f: ⇒ A): A

  39. def post [A] (uri: String, body: String = "", headers: Map[String, String] = Map.empty)(f: ⇒ A): A

  40. def post [A] (uri: String, params: Iterable[(String, String)], headers: Map[String, String])(f: ⇒ A): A

  41. def post [A] (uri: String, params: Iterable[(String, String)])(f: ⇒ A): A

  42. def post [A] (uri: String, params: (String, String)*)(f: ⇒ A): A

  43. def put [A] (uri: String, body: String = "", headers: Map[String, String] = Map.empty)(f: ⇒ A): A

  44. def put [A] (uri: String, params: Iterable[(String, String)], headers: Map[String, String])(f: ⇒ A): A

  45. def put [A] (uri: String, params: Iterable[(String, String)])(f: ⇒ A): A

  46. def put [A] (uri: String, params: (String, String)*)(f: ⇒ A): A

  47. def response : HttpTester

  48. def session [A] (f: ⇒ A): A

  49. def start (): Unit

    Attributes
    protected
  50. def status : Int

  51. def stop (): Unit

    Attributes
    protected
  52. def submit [A] (method: String, uri: String, queryParams: Iterable[(String, String)] = Map.empty, headers: Map[String, String] = Map.empty, body: String = null)(f: ⇒ A): A

  53. def submit [A] (req: HttpTester)(f: ⇒ A): A

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

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

    Definition Classes
    AnyRef → Any
  56. def trace [A] (uri: String, params: Iterable[(String, String)] = Seq.empty, headers: Map[String, String] = Map.empty)(f: ⇒ A): A

  57. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  60. def route (servlet: HttpServlet, path: String): Unit

    Annotations
    @deprecated
    Deprecated

    renamed to addServlet

  61. def route (klass: Class[_], path: String): org.eclipse.jetty.servlet.Holder[_ >: javax.servlet.Servlet with javax.servlet.Filter <: java.lang.Object]

    Annotations
    @deprecated
    Deprecated

    use addServlet(Class, String) or addFilter(Class, String)

  62. def routeFilter (filter: Class[_ <: javax.servlet.Filter], path: String): FilterHolder

    Annotations
    @deprecated
    Deprecated

    renamed to addFilter

Inherited from AnyRef

Inherited from Any