Package io.quarkiverse.mcp.server.test
Record Class McpAssured.Snapshot
java.lang.Object
java.lang.Record
io.quarkiverse.mcp.server.test.McpAssured.Snapshot
- Record Components:
requests- The requests sent from the serverresponses- The responses sent from the servernotifications- The notifications sent from the server
- Enclosing class:
- McpAssured
public static record McpAssured.Snapshot(List<io.vertx.core.json.JsonObject> requests, List<io.vertx.core.json.JsonObject> responses, List<io.vertx.core.json.JsonObject> notifications)
extends Record
An immutable snapshot of assertable messages sent from the server.
-
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.List<io.vertx.core.json.JsonObject>Returns the value of thenotificationsrecord component.List<io.vertx.core.json.JsonObject>requests()Returns the value of therequestsrecord component.List<io.vertx.core.json.JsonObject>Returns the value of theresponsesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Snapshot
public Snapshot(List<io.vertx.core.json.JsonObject> requests, List<io.vertx.core.json.JsonObject> responses, List<io.vertx.core.json.JsonObject> notifications) Creates an instance of aSnapshotrecord class.- Parameters:
requests- the value for therequestsrecord componentresponses- the value for theresponsesrecord componentnotifications- the value for thenotificationsrecord 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). -
requests
Returns the value of therequestsrecord component.- Returns:
- the value of the
requestsrecord component
-
responses
Returns the value of theresponsesrecord component.- Returns:
- the value of the
responsesrecord component
-
notifications
Returns the value of thenotificationsrecord component.- Returns:
- the value of the
notificationsrecord component
-