Class IssueTestSuite

java.lang.Object
org.junitpioneer.jupiter.IssueTestSuite

public final class IssueTestSuite extends Object
Represents the execution result of test method, which is annotated with Issue.

Once Pioneer baselines against Java 17, this will be a record.

Since:
1.1
See Also:
  • Field Details

  • Constructor Details

    • IssueTestSuite

      public IssueTestSuite(String issueId, List<IssueTestCase> tests)
      Constructor with all attributes.
      Parameters:
      issueId - Value of the Issue annotation
      tests - List of all tests, annotated with the issueId
  • Method Details

    • issueId

      public String issueId()
      Returns the value of the Issue annotation.
      Returns:
      IssueId the test belongs to
    • tests

      public 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(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object