net.liftweb.http.testing

TestKit

trait TestKit extends ClientBuilder with GetPoster with GetPosterHelper

Mix this trait into your test so you can make HTTP requests on a target

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TestKit
  2. GetPosterHelper
  3. GetPoster
  4. ToResponse
  5. BaseGetPoster
  6. ClientBuilder
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type ResponseType = TestResponse

    Definition Classes
    ToResponse
  2. class TestHandler extends AnyRef

Abstract Value Members

  1. abstract def baseUrl: String

    The base URL for all GET and POST requests

    The base URL for all GET and POST requests

    Definition Classes
    TestKitBaseGetPoster

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def buildBasicAuthClient(name: String, pwd: String): HttpClient

    Create a new HTTP client that does BASIC AUTH with username/pwd

    Create a new HTTP client that does BASIC AUTH with username/pwd

    Definition Classes
    ClientBuilder
  8. def buildNoAuthClient: HttpClient

    Create a new HTTP client that does not do any form of AUTH

    Create a new HTTP client that does not do any form of AUTH

    Definition Classes
    ClientBuilder
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def delete(url: String, params: (String, Any)*)(implicit capture: (String, HttpClient, HttpMethodBase) ⇒ ResponseType): ResponseType

    Perform an HTTP DELETE with a newly minted httpClient

    Perform an HTTP DELETE with a newly minted httpClient

    url

    the URL to make the request on

    params

    the parameters to pass

    Definition Classes
    GetPosterHelper
  11. def delete(url: String, httpClient: HttpClient, headers: List[(String, String)], faux_params: (String, Any)*)(implicit capture: (String, HttpClient, HttpMethodBase) ⇒ ResponseType): ResponseType

    Perform an HTTP DELETE

    Perform an HTTP DELETE

    url

    - the URL to append to the baseUrl

    headers

    - any additional headers to include with the request

    faux_params

    - the request parameters to include with the request

    Definition Classes
    BaseGetPoster
  12. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def get(url: String, params: (String, Any)*)(implicit capture: (String, HttpClient, HttpMethodBase) ⇒ ResponseType): ResponseType

    Perform an HTTP GET with a newly minted httpClient

    Perform an HTTP GET with a newly minted httpClient

    url

    the URL to make the request on

    params

    the parameters to pass

    Definition Classes
    GetPosterHelper
  16. def get(url: String, httpClient: HttpClient, headers: List[(String, String)], faux_params: (String, Any)*)(implicit capture: (String, HttpClient, HttpMethodBase) ⇒ ResponseType): ResponseType

    Perform an HTTP GET

    Perform an HTTP GET

    url

    - the URL to append to the baseUrl

    headers

    - any additional headers to include with the request

    faux_params

    - the request parameters to include with the request

    Definition Classes
    BaseGetPoster
  17. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. implicit def jsonToRequestEntity(body: JValue): RequestEntity

    Definition Classes
    BaseGetPoster
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. def post(url: String, body: Array[Byte], contentType: String)(implicit capture: (String, HttpClient, HttpMethodBase) ⇒ ResponseType): ResponseType

    Perform an HTTP POST with a newly minted httpClient

    Perform an HTTP POST with a newly minted httpClient

    url

    the URL to make the request on

    body

    the bytes to POST to the server

    contentType

    the content type of the message

    Definition Classes
    GetPosterHelper
  25. def post[RT](url: String, xml: RT)(implicit capture: (String, HttpClient, HttpMethodBase) ⇒ ResponseType, bodyToRequestEntity: (RT) ⇒ RequestEntity): ResponseType

    Perform an HTTP POST with a newly minted httpClient

    Perform an HTTP POST with a newly minted httpClient

    url

    the URL to make the request on

    xml

    the XML to POST to the server

    Definition Classes
    GetPosterHelper
  26. def post(url: String, params: (String, Any)*)(implicit capture: (String, HttpClient, HttpMethodBase) ⇒ ResponseType): ResponseType

    Perform an HTTP POST with a newly minted httpClient

    Perform an HTTP POST with a newly minted httpClient

    url

    the URL to make the request on

    params

    the parameters to pass

    Definition Classes
    GetPosterHelper
  27. def post(url: String, httpClient: HttpClient, headers: List[(String, String)], body: Array[Byte], contentType: String)(implicit capture: (String, HttpClient, HttpMethodBase) ⇒ ResponseType): ResponseType

    Perform an HTTP POST with a pile of bytes in the body

    Perform an HTTP POST with a pile of bytes in the body

    url

    - the URL to append to the baseUrl

    headers

    - any additional headers to include with the request

    body

    - the pile of bytes to POST to the target server

    contentType

    - the content type of the pile of bytes

    Definition Classes
    BaseGetPoster
  28. def post[RT](url: String, httpClient: HttpClient, headers: List[(String, String)], body: RT)(implicit capture: (String, HttpClient, HttpMethodBase) ⇒ ResponseType, bodyToRequestEntity: (RT) ⇒ RequestEntity): ResponseType

    Perform an HTTP POST with an XML body

    Perform an HTTP POST with an XML body

    url

    - the URL to append to the baseUrl

    headers

    - any additional headers to include with the request

    body

    - the xml to post

    Definition Classes
    BaseGetPoster
  29. def post(url: String, httpClient: HttpClient, headers: List[(String, String)], faux_params: (String, Any)*)(implicit capture: (String, HttpClient, HttpMethodBase) ⇒ ResponseType): ResponseType

    Perform an HTTP POST

    Perform an HTTP POST

    url

    - the URL to append to the baseUrl

    headers

    - any additional headers to include with the request

    faux_params

    - the request parameters to include with the request

    Definition Classes
    BaseGetPoster
  30. def put(url: String, body: Array[Byte], contentType: String)(implicit capture: (String, HttpClient, HttpMethodBase) ⇒ ResponseType): ResponseType

    Perform an HTTP POST with a newly minted httpClient

    Perform an HTTP POST with a newly minted httpClient

    url

    the URL to make the request on

    body

    the bytes to POST to the server

    contentType

    the content type of the message

    Definition Classes
    GetPosterHelper
  31. def put[RT](url: String, xml: RT)(implicit capture: (String, HttpClient, HttpMethodBase) ⇒ ResponseType, bodyToRequestEntity: (RT) ⇒ RequestEntity): ResponseType

    Perform an HTTP PUT with a newly minted httpClient

    Perform an HTTP PUT with a newly minted httpClient

    url

    the URL to make the request on

    xml

    the XML to PUT to the server

    Definition Classes
    GetPosterHelper
  32. def put(url: String, httpClient: HttpClient, headers: List[(String, String)], body: Array[Byte], contentType: String)(implicit capture: (String, HttpClient, HttpMethodBase) ⇒ ResponseType): ResponseType

    Perform an HTTP PUT with a pile of bytes in the body

    Perform an HTTP PUT with a pile of bytes in the body

    url

    - the URL to append to the baseUrl

    headers

    - any additional headers to include with the request

    body

    - the pile of bytes to POST to the target server

    contentType

    - the content type of the pile of bytes

    Definition Classes
    BaseGetPoster
  33. def put[RT](url: String, httpClient: HttpClient, headers: List[(String, String)], body: RT)(implicit capture: (String, HttpClient, HttpMethodBase) ⇒ ResponseType, bodyToRequestEntity: (RT) ⇒ RequestEntity): ResponseType

    Perform an HTTP PUT with an XML body

    Perform an HTTP PUT with an XML body

    url

    - the URL to append to the baseUrl

    headers

    - any additional headers to include with the request

    body

    - the xml to post

    Definition Classes
    BaseGetPoster
  34. def put(url: String, httpClient: HttpClient, headers: List[(String, String)])(implicit capture: (String, HttpClient, HttpMethodBase) ⇒ ResponseType): ResponseType

    Perform an HTTP PUT

    Perform an HTTP PUT

    url

    - the URL to append to the baseUrl

    headers

    - any additional headers to include with the request

    Definition Classes
    BaseGetPoster
  35. implicit def reqToHander(in: TestResponse): TestHandler

  36. implicit def responseCapture(fullUrl: String, httpClient: HttpClient, getter: HttpMethodBase): ResponseType

    Definition Classes
    ToResponse
  37. def slurpApacheHeaders(in: Array[Header]): Map[String, List[String]]

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

    Definition Classes
    AnyRef
  39. def theHttpClient: HttpClient

    Create the HTTP client for a new get/post request

    Create the HTTP client for a new get/post request

    Definition Classes
    ClientBuilder
  40. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. implicit def xmlToRequestEntity(body: NodeSeq): RequestEntity

    Definition Classes
    BaseGetPoster

Inherited from GetPosterHelper

Inherited from GetPoster

Inherited from ToResponse

Inherited from BaseGetPoster

Inherited from ClientBuilder

Inherited from AnyRef

Inherited from Any

Ungrouped