Class FrameworkTest
java.lang.Object
org.apache.hc.core5.testing.framework.FrameworkTest
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a test with default values.FrameworkTest
(Map<String, Object> test) Constructs a test with values that are passed in as well as defaults for values that are not passed in. -
Method Summary
Modifier and TypeMethodDescriptionReturns a request with defaults for any parameter that is not specified.Returns an expected response with defaults for any parameter that is not specified.private void
moveAnyParametersInPathToQuery
(Map<String, Object> request) toString()
-
Field Details
-
request
-
response
-
-
Constructor Details
-
FrameworkTest
public FrameworkTest()Constructs a test with default values. -
FrameworkTest
Constructs a test with values that are passed in as well as defaults for values that are not passed in.- Parameters:
test
- Contains a REQUEST and an expected RESPONSE. SeeClientPOJOAdapter
for details.
-
-
Method Details
-
initRequest
Returns a request with defaults for any parameter that is not specified.- Returns:
- a REQUEST map.
- Throws:
TestingFrameworkException
- a problem such as an invalid URL
-
moveAnyParametersInPathToQuery
private void moveAnyParametersInPathToQuery(Map<String, Object> request) throws TestingFrameworkException- Throws:
TestingFrameworkException
-
initResponseExpectations
Returns an expected response with defaults for any parameter that is not specified.- Returns:
- the RESPONSE map.
-
toString
-