Record Class AdapterTckScenario
java.lang.Object
java.lang.Record
org.j7m.middleware.adapter.spi.AdapterTckScenario
- Record Components:
id- stable scenario identifierprofile- semantic profile under testcapability- capability exercised by the scenariorequired- whether the scenario is required for acceptancedescription- safe description of the behavior being tested
public record AdapterTckScenario(String id, AdapterSemanticProfile profile, AdapterCapability capability, boolean required, String description)
extends Record
Single semantic scenario executed by the adapter TCK.
The record is immutable and thread-safe. Scenarios are vendor-neutral and deterministic. A required scenario must pass for an adapter to be accepted for its semantic profile; unsupported required scenarios are compatibility failures.
-
Constructor Summary
ConstructorsConstructorDescriptionAdapterTckScenario(String id, AdapterSemanticProfile profile, AdapterCapability capability, boolean required, String description) Creates a TCK scenario. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilityrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.profile()Returns the value of theprofilerecord component.booleanrequired()Returns the value of therequiredrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AdapterTckScenario
public AdapterTckScenario(String id, AdapterSemanticProfile profile, AdapterCapability capability, boolean required, String description) Creates a TCK scenario.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
profile
-
capability
Returns the value of thecapabilityrecord component.- Returns:
- the value of the
capabilityrecord component
-
required
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-