p

net.liftweb.http

testing

package testing

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait BaseGetPoster extends AnyRef

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

  2. abstract class BaseResponse extends Response with BaseGetPoster with GetPosterHelper

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

  3. trait ClientBuilder extends AnyRef
  4. class CompleteFailure extends TestResponse
  5. trait GetPoster extends BaseGetPoster with ToResponse
  6. trait GetPosterHelper extends AnyRef
  7. class HttpResponse extends BaseResponse with ToResponse with TestResponse

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

  8. class Item extends AnyRef
  9. trait ReportFailure extends AnyRef

    A trait for reporting failures

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

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

  11. trait Response extends AnyRef

    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
  13. trait TestFramework extends TestKit

    A legacy test framework

  14. trait TestKit extends ClientBuilder with GetPoster with GetPosterHelper

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

  15. trait TestResponse extends Response
  16. case class TestResults (res: List[Tracker]) extends Product with Serializable
  17. class TestRunner extends AnyRef
  18. class TheResponse extends BaseResponse with ToBoxTheResponse

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

  19. trait ToBoxTheResponse extends AnyRef
  20. trait ToResponse extends AnyRef
  21. case class Tracker (name: String, isAssert: Boolean, isBegin: Boolean, success: Boolean, exception: Box[Throwable], trace: List[StackTraceElement]) extends Product with Serializable

Value Members

  1. object Item
  2. object TestHelpers

Ungrouped