skinny.micro.test

SkinnyMicroTests

trait SkinnyMicroTests extends EmbeddedJettyContainer with HttpComponentsClient

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
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SkinnyMicroTests
  2. HttpComponentsClient
  3. Client
  4. ImplicitConversions
  5. EmbeddedJettyContainer
  6. JettyContainer
  7. Container
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. def addFilter(filter: Class[_ <: Filter], path: String, dispatches: EnumSet[DispatcherType]): FilterHolder

    Definition Classes
    JettyContainer
  7. def addFilter(filter: Class[_ <: Filter], path: String): FilterHolder

    Definition Classes
    JettyContainer
  8. def addFilter(filter: Filter, path: String, dispatches: EnumSet[DispatcherType] = DefaultDispatcherTypes): FilterHolder

    Definition Classes
    JettyContainer
  9. def addServlet(servlet: Class[_ <: HttpServlet], path: String): ServletHolder

    Definition Classes
    JettyContainer
  10. def addServlet(servlet: HttpServlet, path: String, name: String): Unit

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

    Definition Classes
    JettyContainer
  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def baseUrl: String

    Definition Classes
    EmbeddedJettyContainer
  14. def body: String

    Definition Classes
    Client
  15. def bodyBytes: Array[Byte]

    Definition Classes
    Client
  16. def clone(): AnyRef

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

    Definition Classes
    Client
  18. def contextPath: String

    Definition Classes
    EmbeddedJettyContainer
  19. def createBody(name: String, content: Any): UploadableBody

    Definition Classes
    HttpComponentsClient
  20. def createClient: CloseableHttpClient

    Attributes
    protected
    Definition Classes
    HttpComponentsClient
  21. def delete[A](uri: String, params: Iterable[(String, String)] = Seq.empty, headers: Iterable[(String, String)] = Seq.empty)(f: ⇒ A): A

    Definition Classes
    Client
  22. def ensureSessionIsSerializable(): Unit

    Attributes
    protected
    Definition Classes
    JettyContainerContainer
  23. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean

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

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

    Definition Classes
    Client
  27. def get[A](uri: String, params: (String, String)*)(f: ⇒ A): A

    Definition Classes
    Client
  28. def get[A](uri: String)(f: ⇒ A): A

    Definition Classes
    Client
  29. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  30. def hashCode(): Int

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

    Definition Classes
    Client
  32. def head[A](uri: String, params: (String, String)*)(f: ⇒ A): A

    Definition Classes
    Client
  33. def head[A](uri: String)(f: ⇒ A): A

    Definition Classes
    Client
  34. def header: DefaultMap[String, String]

    Definition Classes
    Client
  35. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  36. def localPort: Option[Int]

    The port of the currently running Jetty.

    The port of the currently running Jetty. May differ from port if port is 0.

    returns

    Some port if Jetty is currently listening, or None if it is not.

    Definition Classes
    EmbeddedJettyContainer
  37. def mount(app: Filter, path: String, dispatches: EnumSet[DispatcherType] = DefaultDispatcherTypes): FilterHolder

    Definition Classes
    JettyContainer
  38. def mount(servlet: HttpServlet, path: String, name: String): Unit

    Definition Classes
    JettyContainer
  39. def mount(servlet: HttpServlet, path: String): Unit

    Definition Classes
    JettyContainer
  40. def mount(klass: Class[_], path: String): Holder[_ >: Servlet with Filter <: AnyRef]

    Definition Classes
    JettyContainer
  41. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  42. final def notify(): Unit

    Definition Classes
    AnyRef
  43. final def notifyAll(): Unit

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

    Definition Classes
    Client
  45. def patch[A](uri: String, body: Array[Byte] = Array(), headers: Iterable[(String, String)] = Seq.empty)(f: ⇒ A): A

    Definition Classes
    Client
  46. def patch[A](uri: String, params: Iterable[(String, String)], headers: Iterable[(String, String)])(f: ⇒ A): A

    Definition Classes
    Client
  47. def patch[A](uri: String, params: Iterable[(String, String)])(f: ⇒ A): A

    Definition Classes
    Client
  48. def patch[A](uri: String, params: (String, String)*)(f: ⇒ A): A

    Definition Classes
    Client
  49. def port: Int

    Sets the port to listen on.

    Sets the port to listen on. 0 means listen on any available port.

    Definition Classes
    EmbeddedJettyContainer
  50. def post[A](uri: String, params: Iterable[(String, String)], files: Iterable[(String, Any)], headers: Iterable[(String, String)])(f: ⇒ A): A

    Definition Classes
    Client
  51. def post[A](uri: String, params: Iterable[(String, String)], files: Iterable[(String, Any)])(f: ⇒ A): A

    Definition Classes
    Client
  52. def post[A](uri: String, body: Array[Byte] = Array(), headers: Iterable[(String, String)] = Seq.empty)(f: ⇒ A): A

    Definition Classes
    Client
  53. def post[A](uri: String, params: Iterable[(String, String)], headers: Map[String, String])(f: ⇒ A): A

    Definition Classes
    Client
  54. def post[A](uri: String, params: Iterable[(String, String)])(f: ⇒ A): A

    Definition Classes
    Client
  55. def post[A](uri: String, params: (String, String)*)(f: ⇒ A): A

    Definition Classes
    Client
  56. def put[A](uri: String, params: Iterable[(String, String)], files: Iterable[(String, Any)], headers: Iterable[(String, String)])(f: ⇒ A): A

    Definition Classes
    Client
  57. def put[A](uri: String, params: Iterable[(String, String)], files: Iterable[(String, Any)])(f: ⇒ A): A

    Definition Classes
    Client
  58. def put[A](uri: String, body: Array[Byte] = Array(), headers: Iterable[(String, String)] = Seq.empty)(f: ⇒ A): A

    Definition Classes
    Client
  59. def put[A](uri: String, params: Iterable[(String, String)], headers: Map[String, String])(f: ⇒ A): A

    Definition Classes
    Client
  60. def put[A](uri: String, params: Iterable[(String, String)])(f: ⇒ A): A

    Definition Classes
    Client
  61. def put[A](uri: String, params: (String, String)*)(f: ⇒ A): A

    Definition Classes
    Client
  62. var resourceBasePath: String

    Definition Classes
    Container
  63. def response: ClientResponse

    Returns the current response within the scope of the submit method.

    Returns the current response within the scope of the submit method.

    Definition Classes
    Client
  64. lazy val server: Server

    Definition Classes
    EmbeddedJettyContainer
  65. lazy val servletContextHandler: ServletContextHandler

    Definition Classes
    EmbeddedJettyContainerJettyContainer
  66. def session[A](f: ⇒ A): A

    Definition Classes
    HttpComponentsClientClient
  67. def skipDefaultServlet: Boolean

    Definition Classes
    JettyContainer
  68. def start(): Unit

    Definition Classes
    EmbeddedJettyContainerContainer
  69. def status: Int

    Definition Classes
    Client
  70. def stop(): Unit

    Definition Classes
    EmbeddedJettyContainerContainer
  71. implicit def stringToByteArray(str: String): Array[Byte]

    Definition Classes
    ImplicitConversions
  72. def submit[A](method: String, path: String, queryParams: Iterable[(String, String)] = Map.empty, headers: Iterable[(String, String)] = Seq.empty, body: Array[Byte] = null)(f: ⇒ A): A

    Definition Classes
    HttpComponentsClientClient
  73. def submitMultipart[A](method: String, path: String, params: Iterable[(String, String)], headers: Iterable[(String, String)], files: Iterable[(String, Any)])(f: ⇒ A): A

    Attributes
    protected
    Definition Classes
    HttpComponentsClientClient
  74. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  75. def toString(): String

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

    Definition Classes
    Client
  77. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  80. def withResponse[A](res: ClientResponse)(f: ⇒ A): A

    Attributes
    protected
    Definition Classes
    Client

Inherited from HttpComponentsClient

Inherited from Client

Inherited from ImplicitConversions

Inherited from EmbeddedJettyContainer

Inherited from JettyContainer

Inherited from Container

Inherited from AnyRef

Inherited from Any

Ungrouped