T - Type of the test plan to build.@NotThreadSafe public abstract class AbstractTestPlanBuilder<T extends TestPlan> extends Object implements TestPlanBuilder
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_REQUESTS_NUMBER
Default number of expected requests.
|
| Constructor and Description |
|---|
AbstractTestPlanBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
build()
Builds new test plan.
|
static ValueExpectation |
equalTo(String value)
Creates
equal to value expectations. |
static ValueExpectation |
equalToIgnoreCase(String value)
Creates
equal to ignoring letter case value expectations. |
static ValueExpectation |
equalToJson(String value)
Creates {equal to JSON} value expectation.
|
static ValueExpectation |
equalToXml(String value)
Creates {equal to XML} value expectation.
|
static ValueExpectation |
matching(org.hamcrest.Matcher<String> valueMatcher)
Creates
matches value expectation. |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexpectprotected static final int DEFAULT_REQUESTS_NUMBER
public RequestExpectationBuilder request()
TestPlanBuilderrequest in interface TestPlanBuilderpublic ResponseBuilder response()
TestPlanBuilderresponse in interface TestPlanBuilderpublic abstract T build()
TestPlanBuilderbuild in interface TestPlanBuilderpublic static ValueExpectation equalToXml(String value)
value - Expected XML value. Null or empty values is allowed.public static ValueExpectation equalToJson(String value)
value - Expected JSON value. Null or empty values is allowed.public static ValueExpectation equalTo(String value)
equal to value expectations.value - Expected value.public static ValueExpectation equalToIgnoreCase(String value)
equal to ignoring letter case value expectations.value - Expected value.public static ValueExpectation matching(org.hamcrest.Matcher<String> valueMatcher)
matches value expectation.valueMatcher - Expected matching value.Copyright © 2016. All rights reserved.