org.scalatra.test.specs2

BaseScalatraSpec

trait BaseScalatraSpec extends BeforeAfterAll with ScalatraTests

A base specification structure that starts the tester before the specification and stops it afterward. Clients probably want to extend ScalatraSpec or MutableScalatraSpec.

Linear Supertypes
ScalatraTests, HttpComponentsClient, Client, ImplicitConversions, EmbeddedJettyContainer, JettyContainer, Container, BeforeAfterAll, FragmentsFactory, SpecificationStructure, ContextualSpecificationStructure, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BaseScalatraSpec
  2. ScalatraTests
  3. HttpComponentsClient
  4. Client
  5. ImplicitConversions
  6. EmbeddedJettyContainer
  7. JettyContainer
  8. Container
  9. BeforeAfterAll
  10. FragmentsFactory
  11. SpecificationStructure
  12. ContextualSpecificationStructure
  13. AnyRef
  14. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def is: SpecStructure

    Definition Classes
    SpecificationStructure

Concrete 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. def afterAll(): Unit

    Definition Classes
    BaseScalatraSpec → BeforeAfterAll
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def baseUrl: String

    Definition Classes
    EmbeddedJettyContainer
  15. def beforeAll(): Unit

    Definition Classes
    BaseScalatraSpec → BeforeAfterAll
  16. def body: String

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

    Definition Classes
    Client
  18. def clone(): AnyRef

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

    Definition Classes
    Client
  20. def contextPath: String

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

    Definition Classes
    HttpComponentsClient
  22. def createClient: CloseableHttpClient

    Attributes
    protected
    Definition Classes
    HttpComponentsClient
  23. def decorate(is: SpecStructure, env: Env): SpecStructure

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

    Definition Classes
    Client
  25. def ensureSessionIsSerializable(): Unit

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. def fragmentFactory: FragmentFactory

    Attributes
    protected
    Definition Classes
    FragmentsFactory
  30. def fragments: (Env) ⇒ Fragments

    Definition Classes
    ContextualSpecificationStructure
  31. def get[A](uri: String, params: Iterable[(String, String)] = Seq.empty, headers: Map[String, String] = Map.empty)(f: ⇒ A): A

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

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

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

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

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

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

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

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

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

    Definition Classes
    Any
  41. 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
  42. def map(fs: ⇒ Fragments): Fragments

    Definition Classes
    BeforeAfterAll → SpecificationStructure
  43. def map(fs: ⇒ Fragments, env: Env): Fragments

    Definition Classes
    SpecificationStructure
  44. def map(structure: SpecStructure): SpecStructure

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    Client
  57. 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
  58. def post[A](uri: String, params: Iterable[(String, String)], files: Iterable[(String, Any)], headers: Map[String, String])(f: ⇒ A): A

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    Client
  70. var resourceBasePath: String

    Definition Classes
    Container
  71. 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
  72. lazy val server: Server

    Definition Classes
    EmbeddedJettyContainer
  73. lazy val servletContextHandler: ServletContextHandler

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

    Definition Classes
    HttpComponentsClientClient
  75. def skipDefaultServlet: Boolean

    Definition Classes
    JettyContainer
  76. def start(): Unit

    Definition Classes
    EmbeddedJettyContainerContainer
  77. def status: Int

    Definition Classes
    Client
  78. def stop(): Unit

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

    Definition Classes
    ImplicitConversions
  80. def structure: (Env) ⇒ SpecStructure

    Definition Classes
    SpecificationStructure → ContextualSpecificationStructure
  81. def submit[A](method: String, path: String, queryParams: Iterable[(String, String)] = Map.empty, headers: Map[String, String] = Map.empty, body: Array[Byte] = null)(f: ⇒ A): A

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

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

    Definition Classes
    AnyRef
  84. def toString(): String

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

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

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

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

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

    Attributes
    protected
    Definition Classes
    Client

Inherited from ScalatraTests

Inherited from HttpComponentsClient

Inherited from Client

Inherited from ImplicitConversions

Inherited from EmbeddedJettyContainer

Inherited from JettyContainer

Inherited from Container

Inherited from BeforeAfterAll

Inherited from FragmentsFactory

Inherited from SpecificationStructure

Inherited from ContextualSpecificationStructure

Inherited from AnyRef

Inherited from Any

Ungrouped