Package

net.liftweb.http

testing

Permalink

package testing

Visibility
  1. Public
  2. All

Type Members

  1. trait BaseGetPoster extends AnyRef

    Permalink

    A trait that wraps the Apache Commons HTTP client and supports GET and POST

  2. abstract class BaseResponse extends Response with BaseGetPoster with GetPosterHelper

    Permalink

    The response to an HTTP request, as long as the server responds with *SOMETHING*

  3. trait ClientBuilder extends AnyRef

    Permalink
  4. class CompleteFailure extends TestResponse

    Permalink
  5. trait GetPoster extends BaseGetPoster with ToResponse

    Permalink
  6. trait GetPosterHelper extends AnyRef

    Permalink
  7. class HttpResponse extends BaseResponse with ToResponse with TestResponse

    Permalink

    The response to an HTTP request, as long as the server responds with *SOMETHING*

  8. class Item extends AnyRef

    Permalink
  9. trait ReportFailure extends AnyRef

    Permalink

    A trait for reporting failures

  10. trait RequestKit extends ClientBuilder with BaseGetPoster with GetPosterHelper with ToBoxTheResponse

    Permalink

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

  11. trait Response extends AnyRef

    Permalink

    A response returned from an HTTP request.

    A response returned from an HTTP request. Responses can be chained and tested in a for comprehension:

    
    implicit val
    
    for  {
       login <- post("/api/login", "user" -> "me", "pwd" -> "me") !@ "Failed to log in"
       info <- login.get("/api/info") if info.bodyAsString must_== "My Info"
       moreInfo <- info.post("/api/moreInfo", <info>Some Info</info>)
    } moreInfoheaders("X-MyInfo") must_== List("hello", "goodbye")
    

  12. class TestFailureError extends java.lang.Error

    Permalink
  13. trait TestFramework extends TestKit

    Permalink

    A legacy test framework

  14. trait TestKit extends ClientBuilder with GetPoster with GetPosterHelper

    Permalink

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

  15. trait TestResponse extends Response

    Permalink
  16. case class TestResults(res: List[Tracker]) extends Product with Serializable

    Permalink
  17. class TestRunner extends AnyRef

    Permalink
  18. class TheResponse extends BaseResponse with ToBoxTheResponse

    Permalink

    The response to an HTTP request, as long as the server responds with *SOMETHING*

  19. trait ToBoxTheResponse extends AnyRef

    Permalink
  20. trait ToResponse extends AnyRef

    Permalink
  21. case class Tracker(name: String, isAssert: Boolean, isBegin: Boolean, success: Boolean, exception: Box[Throwable], trace: List[StackTraceElement]) extends Product with Serializable

    Permalink

Value Members

  1. object Item

    Permalink
  2. object TestHelpers

    Permalink

Ungrouped