Package ee.jakarta.tck.data.metadata
Record Class CollectMetaData.TestMetaData
java.lang.Object
java.lang.Record
ee.jakarta.tck.data.metadata.CollectMetaData.TestMetaData
- Record Components:
testClass- - Name of the test class.testName- - Name of the test method.assertion- - The test strategy.isDisabled- - True, if the test is disabled, false otherwise.challengeIssue- - The issue number if the test is challenged.challengeVersion- - The spec version if the test is challneged.- - A list of all the tags on the test class.
- Enclosing class:
- CollectMetaData
public static record CollectMetaData.TestMetaData(String testClass, String testName, String assertion, boolean isDisabled, String challengeIssue, String challengeVersion, List<String> tags)
extends Record
A data structure that represents data associated with test methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassertionrecord component.Returns the value of thechallengeIssuerecord component.Returns the value of thechallengeVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisDisabledrecord component.tags()Returns the value of thetagsrecord component.Returns the value of thetestClassrecord component.testName()Returns the value of thetestNamerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
TestMetaData
public TestMetaData(String testClass, String testName, String assertion, boolean isDisabled, String challengeIssue, String challengeVersion, List<String> tags) Creates an instance of aTestMetaDatarecord class.- Parameters:
testClass- the value for thetestClassrecord componenttestName- the value for thetestNamerecord componentassertion- the value for theassertionrecord componentisDisabled- the value for theisDisabledrecord componentchallengeIssue- the value for thechallengeIssuerecord componentchallengeVersion- the value for thechallengeVersionrecord componenttags- the value for thetagsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
testClass
Returns the value of thetestClassrecord component.- Returns:
- the value of the
testClassrecord component
-
testName
Returns the value of thetestNamerecord component.- Returns:
- the value of the
testNamerecord component
-
assertion
Returns the value of theassertionrecord component.- Returns:
- the value of the
assertionrecord component
-
isDisabled
public boolean isDisabled()Returns the value of theisDisabledrecord component.- Returns:
- the value of the
isDisabledrecord component
-
challengeIssue
Returns the value of thechallengeIssuerecord component.- Returns:
- the value of the
challengeIssuerecord component
-
challengeVersion
Returns the value of thechallengeVersionrecord component.- Returns:
- the value of the
challengeVersionrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-