Record Class ScenarioProgressRecord
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.gherkin.progress.ScenarioProgressRecord
- Record Components:
fingerprint- the stable identifier computed byScenarioFingerprintscenarioName- the scenario's current display name; not part of the key, refreshed on every run so a renamed-in-place scenario still shows its latest titlefeatureTitle- the scenario's current enclosing feature title; not part of the key, refreshed on every run so a scenario moved to a different feature shows that feature's titlelistedAt- when the scenario was first observed asScenarioStatus.LISTED, ornullif it never has beendefinedAt- when the scenario was first observed asScenarioStatus.DEFINED, ornullif it never has beenimplementedAt- when the scenario was first observed asScenarioStatus.IMPLEMENTED, ornullif it never has beenlastSeenAt- when the scenario was last present in a run, ornullfor a record that has never actually been seen (should not occur in practice)removedAt- when the scenario was first observed missing from a run, ornullwhile it's still present in the current scan
public record ScenarioProgressRecord(String fingerprint, String scenarioName, String featureTitle, Instant listedAt, Instant definedAt, Instant implementedAt, Instant lastSeenAt, Instant removedAt)
extends Record
Persisted, per-scenario history of when a scenario first reached each
ScenarioStatus
stage, keyed by ScenarioFingerprint.fingerprint(String) rather than by feature file
location - so the history survives a scenario being moved between feature files.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefinedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefeatureTitlerecord component.Returns the value of thefingerprintrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theimplementedAtrecord component.Returns the value of thelastSeenAtrecord component.listedAt()Returns the value of thelistedAtrecord component.Returns the value of theremovedAtrecord component.Returns the value of thescenarioNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScenarioProgressRecord
public ScenarioProgressRecord(String fingerprint, String scenarioName, String featureTitle, Instant listedAt, Instant definedAt, Instant implementedAt, Instant lastSeenAt, Instant removedAt) Creates an instance of aScenarioProgressRecordrecord class.- Parameters:
fingerprint- the value for thefingerprintrecord componentscenarioName- the value for thescenarioNamerecord componentfeatureTitle- the value for thefeatureTitlerecord componentlistedAt- the value for thelistedAtrecord componentdefinedAt- the value for thedefinedAtrecord componentimplementedAt- the value for theimplementedAtrecord componentlastSeenAt- the value for thelastSeenAtrecord componentremovedAt- the value for theremovedAtrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
fingerprint
Returns the value of thefingerprintrecord component.- Returns:
- the value of the
fingerprintrecord component
-
scenarioName
Returns the value of thescenarioNamerecord component.- Returns:
- the value of the
scenarioNamerecord component
-
featureTitle
Returns the value of thefeatureTitlerecord component.- Returns:
- the value of the
featureTitlerecord component
-
listedAt
Returns the value of thelistedAtrecord component.- Returns:
- the value of the
listedAtrecord component
-
definedAt
Returns the value of thedefinedAtrecord component.- Returns:
- the value of the
definedAtrecord component
-
implementedAt
Returns the value of theimplementedAtrecord component.- Returns:
- the value of the
implementedAtrecord component
-
lastSeenAt
Returns the value of thelastSeenAtrecord component.- Returns:
- the value of the
lastSeenAtrecord component
-
removedAt
Returns the value of theremovedAtrecord component.- Returns:
- the value of the
removedAtrecord component
-