@NotThreadSafe
public interface TestPlanBuilder
Implementations provide ways to build plans for different kind of tests with HTTP Spy.
Concurrency notes. Builder instances are used in a single thread that
prepares requests expectations - typically main thread.
Implementations are not required to be thread safe.
| Modifier and Type | Method and Description |
|---|---|
TestPlan |
build()
Builds new test plan.
|
void |
expect(RequestExpectationBuilder requestExpectationBuilder)
Expect a request.
|
RequestExpectationBuilder |
request()
Returns new request expectation builder that user will populate when
specifying his expectations.
|
ResponseBuilder |
response()
Returns new response builder that user will populate when describing a
response on the actual request.
|
void expect(RequestExpectationBuilder requestExpectationBuilder)
The method adds new request expectation as specified by the argument. Also the method adds the response for the actual request.
requestExpectationBuilder - Request expectation builder.NullPointerException - requestExpectationBuilder is null.RequestExpectationBuilder request()
ResponseBuilder response()
TestPlan build()
Copyright © 2016. All rights reserved.