Record Class Scenario.Step
java.lang.Object
java.lang.Record
codes.grow.packages.betterstack.testing.Scenario.Step
- Record Components:
op- operation nameargs- arguments object (empty object when absent)expect- expectations object (empty object when absent)save- variable name to store the result under, or nullrequires- capabilities this step needs
- Enclosing class:
Scenario
public static record Scenario.Step(String op, com.fasterxml.jackson.databind.JsonNode args, com.fasterxml.jackson.databind.JsonNode expect, String save, List<String> requires)
extends Record
One step of a scenario.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodeargs()Returns the value of theargsrecord component.final booleanIndicates whether some other object is "equal to" this one.com.fasterxml.jackson.databind.JsonNodeexpect()Returns the value of theexpectrecord component.final inthashCode()Returns a hash code value for this object.op()Returns the value of theoprecord component.requires()Returns the value of therequiresrecord component.save()Returns the value of thesaverecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Step
public Step(String op, com.fasterxml.jackson.databind.JsonNode args, com.fasterxml.jackson.databind.JsonNode expect, String save, List<String> requires) Creates a step; the list is copied.- Parameters:
op- operation nameargs- argumentsexpect- expectationssave- variable name or nullrequires- capabilities
-
-
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). -
op
Returns the value of theoprecord component.- Returns:
- the value of the
oprecord component
-
args
public com.fasterxml.jackson.databind.JsonNode args()Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-
expect
public com.fasterxml.jackson.databind.JsonNode expect()Returns the value of theexpectrecord component.- Returns:
- the value of the
expectrecord component
-
save
Returns the value of thesaverecord component.- Returns:
- the value of the
saverecord component
-
requires
Returns the value of therequiresrecord component.- Returns:
- the value of the
requiresrecord component
-