Class Routes
java.lang.Object
kong.unirest.core.Routes
- All Implemented Interfaces:
Assert
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<Invocation> private final HttpMethodprivate final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddInvoke(Invocation invocation) private Headers(package private) RawResponseexchange(HttpRequest request, Config config) private Optional<Invocation> getBestMatch(HttpRequest request) private Optional<Invocation> getBestMatch(HttpRequest request, boolean expected) (package private) HttpMethod(package private) StringgetPath()Assert that any the request sent this body.Assert that any the request sent a multipart fieldAssert that any request to this method/path contained this header(package private) booleanmatches(HttpMethod httpMethod, Path url) (package private) booleanmatches(HttpRequest request) (package private) Expectationprivate Integerverify that all Expectations were fulfilled at least once.wasInvokedTimes(int i) assert that this instance of method/path was invoked x times
-
Field Details
-
path
-
method
-
invokes
-
-
Constructor Details
-
Routes
Routes(HttpRequest request) -
Routes
-
-
Method Details
-
newExpectation
Expectation newExpectation() -
matches
-
exchange
-
matches
-
getBestMatch
-
getBestMatch
-
hadHeader
Description copied from interface:AssertAssert that any request to this method/path contained this header -
hadBody
-
hadField
-
allHeaders
-
wasInvokedTimes
Description copied from interface:Assertassert that this instance of method/path was invoked x times- Specified by:
wasInvokedTimesin interfaceAssert- Parameters:
i- the number of times invoked.- Returns:
- this Assert instance
-
sumInvokes
-
verifyAll
-
getMethod
HttpMethod getMethod() -
getPath
String getPath() -
addInvoke
-