@NotThreadSafe public abstract class AbstractStubPlanBuilder extends AbstractTestPlanBuilder<StubPlan>
DEFAULT_REQUESTS_NUMBER| Constructor and Description |
|---|
AbstractStubPlanBuilder() |
| Modifier and Type | Method and Description |
|---|---|
StubPlan |
build()
Builds new test plan.
|
abstract void |
compose()
Composes the test plan.
|
void |
expect(RequestExpectationBuilder requestExpectationBuilder)
Expect a request.
|
equalTo, equalToIgnoreCase, equalToJson, equalToXml, matching, request, responsepublic void expect(RequestExpectationBuilder requestExpectationBuilder)
TestPlanBuilderThe method adds new request expectation as specified by the argument. Also the method adds the response for the actual request.
requestExpectationBuilder - Request expectation builder.public StubPlan build()
TestPlanBuilderbuild in interface TestPlanBuilderbuild in class AbstractTestPlanBuilder<StubPlan>public abstract void compose()
User has to implement this method when preparing a test plan. User can
invoke expect(com.github.tashoyan.httpspy.RequestExpectationBuilder) inside his implementation of this method to
specify request expectations.
Copyright © 2016. All rights reserved.