- java.lang.Object
-
- org.junitpioneer.jupiter.IssueTestSuite
-
public final class IssueTestSuite extends java.lang.ObjectRepresents the execution result of test method, which is annotated withIssue.Once Pioneer baselines against Java 17, this will be a record.
- Since:
- 1.1
- See Also:
Issue,IssueProcessor
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringissueIdprivate java.util.List<IssueTestCase>tests
-
Constructor Summary
Constructors Constructor Description IssueTestSuite(java.lang.String issueId, java.util.List<IssueTestCase> tests)Constructor with all attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()java.lang.StringissueId()Returns the value of theIssueannotation.java.util.List<IssueTestCase>tests()Retrieves a list with all test cases related to this issue.java.lang.StringtoString()
-
-
-
Field Detail
-
issueId
private final java.lang.String issueId
-
tests
private final java.util.List<IssueTestCase> tests
-
-
Constructor Detail
-
IssueTestSuite
public IssueTestSuite(java.lang.String issueId, java.util.List<IssueTestCase> tests)Constructor with all attributes.- Parameters:
issueId- Value of theIssueannotationtests- List of all tests, annotated with the issueId
-
-
Method Detail
-
issueId
public java.lang.String issueId()
Returns the value of theIssueannotation.- Returns:
- IssueId the test belongs to
-
tests
public java.util.List<IssueTestCase> tests()
Retrieves a list with all test cases related to this issue.- Returns:
- List of all test cases related to this issue
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-