Package com.avoka.fc.core.test.func
Class Result
- java.lang.Object
-
- com.avoka.fc.core.test.func.Result
-
public class Result extends Object
Provides the FormCmdTestRunner test Result class.- Since:
- 17.10.0
-
-
Field Summary
Fields Modifier and Type Field Description List<String>
assertionErrors
The list of test execution assertion errors.String
name
The test name.String
responseBody
The HTTP response body.Map
responseMap
The HTTP response body JSON map.int
statusCode
The HTTP result status code.Txn
txn
The submission object resulting from the test execution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid()
Return true if the test has no test assertion failures.String
toString()
-
-
-
Field Detail
-
name
public final String name
The test name.
-
statusCode
public final int statusCode
The HTTP result status code.
-
responseBody
public final String responseBody
The HTTP response body.
-
responseMap
public final Map responseMap
The HTTP response body JSON map.
-
txn
public final Txn txn
The submission object resulting from the test execution.
-
-
Constructor Detail
-
Result
public Result(String name, int statusCode, String httpResponse, Map responseMap, Submission submission, List<String> assertionErrors)
Create an immutable test Result object.- Parameters:
name
- the test namestatusCode
- the HTTP status codehttpResponse
- the response bodyresponseMap
- the JSON response mapsubmission
- the test submissionassertionErrors
- the test assertion errors
-
-