Implicitly add operations to Extractors.Extractor that create HavePropertyMatcher
s.
Implicitly add operations to Extractors.Extractor that create HavePropertyMatcher
s.
This adds support for reusing Extractor
s in should have(...)
expressions, for example
response should have(statusCode(Status.OK))
Implicitly convert an Extractors.Extractor that returns any type of Option
into a HavePropertyMatcher
.
Implicitly convert an Extractors.Extractor that returns any type of Option
into a HavePropertyMatcher
.
This adds support for reusing Extractor[Option[_]]
s in should have(...)
expressions, for example
response should have(header("header2"))
response should have(body)
Implicitly execute a Api.RequestBuilder and convert the Api.Response into a AnyRefShouldWrapper
Implicitly execute a Api.RequestBuilder and convert the Api.Response into a AnyRefShouldWrapper
This adds support for ScalaTest's ShouldMatchers
to RequestBuilder
Implicitly convert a Api.Response into a AnyRefShouldWrapper
Implicitly convert a Api.Response into a AnyRefShouldWrapper
This adds support for ScalaTest's ShouldMatchers
to Response
Adds ScalaTest support to the RestTest Dsl.
The
should
keyword is added to Api.RequestBuilder and Api.Response expressions, theRequestBuilder
is executed first andshould
applied to theResponse
.The
have
keyword supports Extractors.ExtractorLikes. See ExtractorToHavePropertyMatcher for more details.Example