package testing
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
-
trait
BaseGetPoster
extends AnyRef
A trait that wraps the Apache Commons HTTP client and supports GET and POST
-
abstract
class
BaseResponse
extends Response with BaseGetPoster with GetPosterHelper
The response to an HTTP request, as long as the server responds with *SOMETHING*
- trait ClientBuilder extends AnyRef
- class CompleteFailure extends TestResponse
- trait GetPoster extends BaseGetPoster with ToResponse
- trait GetPosterHelper extends AnyRef
-
class
HttpResponse
extends BaseResponse with ToResponse with TestResponse
The response to an HTTP request, as long as the server responds with *SOMETHING*
- class Item extends AnyRef
-
trait
ReportFailure
extends AnyRef
A trait for reporting failures
-
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
-
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")
- class TestFailureError extends java.lang.Error
-
trait
TestFramework
extends TestKit
A legacy test framework
-
trait
TestKit
extends ClientBuilder with GetPoster with GetPosterHelper
Mix this trait into your test so you can make HTTP requests on a target
- trait TestResponse extends Response
- case class TestResults (res: List[Tracker]) extends Product with Serializable
- class TestRunner extends AnyRef
-
class
TheResponse
extends BaseResponse with ToBoxTheResponse
The response to an HTTP request, as long as the server responds with *SOMETHING*
- trait ToBoxTheResponse extends AnyRef
- trait ToResponse extends AnyRef
- case class Tracker (name: String, isAssert: Boolean, isBegin: Boolean, success: Boolean, exception: Box[Throwable], trace: List[StackTraceElement]) extends Product with Serializable
Value Members
- object Item
- object TestHelpers