Record Class RenderedApiTest
java.lang.Object
java.lang.Record
com.shaft.capture.generate.api.RenderedApiTest
- Record Components:
source- generated Java sourcetestDataArtifacts- test-data-relative path (e.g."api-capture/tx-2-schema.json") to file content, for the caller to write undersrc/test/resources/test-data/skippedTransactionIds- transaction IDs that were recorded but not rendered, becauseSHAFT.APIhas no request builder for their HTTP method
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theskippedTransactionIdsrecord component.source()Returns the value of thesourcerecord component.Returns the value of thetestDataArtifactsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RenderedApiTest
public RenderedApiTest(String source, Map<String, String> testDataArtifacts, List<String> skippedTransactionIds) Creates an instance of aRenderedApiTestrecord class.- Parameters:
source- the value for thesourcerecord componenttestDataArtifacts- the value for thetestDataArtifactsrecord componentskippedTransactionIds- the value for theskippedTransactionIdsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
source
-
testDataArtifacts
Returns the value of thetestDataArtifactsrecord component.- Returns:
- the value of the
testDataArtifactsrecord component
-
skippedTransactionIds
Returns the value of theskippedTransactionIdsrecord component.- Returns:
- the value of the
skippedTransactionIdsrecord component
-