trait
ScalatraTests
extends AnyRef
Abstract Value Members
-
def
tester
: ServletTester
Concrete Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
def
addFilter
(filter: Class[_ <: javax.servlet.Filter], path: String, dispatches: EnumSet[DispatcherType]): FilterHolder
-
def
addFilter
(filter: Class[_ <: javax.servlet.Filter], path: String): FilterHolder
-
def
addFilter
(filter: Filter, path: String, dispatches: EnumSet[DispatcherType]): FilterHolder
-
def
addFilter
(filter: Filter, path: String): FilterHolder
-
def
addServlet
(servlet: Class[_ <: javax.servlet.http.HttpServlet], path: String): ServletHolder
-
def
addServlet
(servlet: HttpServlet, path: String): Unit
-
def
asInstanceOf
[T0]
: T0
-
def
body
: String
-
def
clone
(): AnyRef
-
def
connect
[A]
(uri: String, params: Iterable[(String, String)] = Seq.empty, headers: Map[String, String] = Map.empty)(f: ⇒ A): A
-
def
delete
[A]
(uri: String, params: Iterable[(String, String)] = Seq.empty, headers: Map[String, String] = Map.empty)(f: ⇒ A): A
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
def
get
[A]
(uri: String, params: Iterable[(String, String)] = Seq.empty, headers: Map[String, String] = Map.empty)(f: ⇒ A): A
-
def
get
[A]
(uri: String, params: (String, String)*)(f: ⇒ A): A
-
def
get
[A]
(uri: String)(f: ⇒ A): A
-
def
getClass
(): java.lang.Class[_]
-
def
hashCode
(): Int
-
def
head
[A]
(uri: String, params: Iterable[(String, String)] = Seq.empty, headers: Map[String, String] = Map.empty)(f: ⇒ A): A
-
def
head
[A]
(uri: String, params: (String, String)*)(f: ⇒ A): A
-
def
head
[A]
(uri: String)(f: ⇒ A): A
-
def
header
: header
-
implicit def
httpTesterToScalatraHttpTester
(t: HttpTester): ScalatraHttpTester
-
def
isInstanceOf
[T0]
: Boolean
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
def
options
[A]
(uri: String, params: Iterable[(String, String)] = Seq.empty, headers: Map[String, String] = Map.empty)(f: ⇒ A): A
-
def
patch
[A]
(uri: String, body: String = "", headers: Map[String, String] = Map.empty)(f: ⇒ A): A
-
def
patch
[A]
(uri: String, params: Iterable[(String, String)], headers: Map[String, String])(f: ⇒ A): A
-
def
patch
[A]
(uri: String, params: Iterable[(String, String)])(f: ⇒ A): A
-
def
patch
[A]
(uri: String, params: (String, String)*)(f: ⇒ A): A
-
def
post
[A]
(uri: String, body: String = "", headers: Map[String, String] = Map.empty)(f: ⇒ A): A
-
def
post
[A]
(uri: String, params: Iterable[(String, String)], headers: Map[String, String])(f: ⇒ A): A
-
def
post
[A]
(uri: String, params: Iterable[(String, String)])(f: ⇒ A): A
-
def
post
[A]
(uri: String, params: (String, String)*)(f: ⇒ A): A
-
def
put
[A]
(uri: String, body: String = "", headers: Map[String, String] = Map.empty)(f: ⇒ A): A
-
def
put
[A]
(uri: String, params: Iterable[(String, String)], headers: Map[String, String])(f: ⇒ A): A
-
def
put
[A]
(uri: String, params: Iterable[(String, String)])(f: ⇒ A): A
-
def
put
[A]
(uri: String, params: (String, String)*)(f: ⇒ A): A
-
def
response
: HttpTester
-
def
session
[A]
(f: ⇒ A): A
-
def
start
(): Unit
-
def
status
: Int
-
def
stop
(): Unit
-
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
-
def
submit
[A]
(req: HttpTester)(f: ⇒ A): A
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toString
(): String
-
def
trace
[A]
(uri: String, params: Iterable[(String, String)] = Seq.empty, headers: Map[String, String] = Map.empty)(f: ⇒ A): A
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
-
def
route
(servlet: HttpServlet, path: String): Unit
-
def
route
(klass: Class[_], path: String): org.eclipse.jetty.servlet.Holder[_ >: javax.servlet.Servlet with javax.servlet.Filter <: java.lang.Object]
-
def
routeFilter
(filter: Class[_ <: javax.servlet.Filter], path: String): FilterHolder
Inherited from AnyRef
Inherited from Any
Provides a framework-agnostic way to test your Scalatra app. You probably want to extend this with either
org.scalatra.test.scalatest.ScalatraSuiteororg.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.