Package org.mockserver.client
Record Class MockServerClient.Scenario
java.lang.Object
java.lang.Record
org.mockserver.client.MockServerClient.Scenario
- Record Components:
scenarioName- the name of the scenario state-machinecurrentState- the scenario's current state, ornullif it has never been set
- Enclosing class:
- MockServerClient
public static record MockServerClient.Scenario(String scenarioName, String currentState)
extends Record
A scenario and its current state, as returned by the scenario control-plane endpoints.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentStaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thescenarioNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Scenario
Creates an instance of aScenariorecord class.- Parameters:
scenarioName- the value for thescenarioNamerecord componentcurrentState- the value for thecurrentStaterecord 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). -
scenarioName
Returns the value of thescenarioNamerecord component.- Returns:
- the value of the
scenarioNamerecord component
-
currentState
Returns the value of thecurrentStaterecord component.- Returns:
- the value of the
currentStaterecord component
-