Class IssueTestSuite


  • public final class IssueTestSuite
    extends java.lang.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:
    Issue, IssueProcessor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String issueId  
      private 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
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String issueId()
      Returns the value of the Issue annotation.
      java.util.List<IssueTestCase> tests()
      Retrieves a list with all test cases related to this issue.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • issueId

        private final java.lang.String issueId
    • Constructor Detail

      • IssueTestSuite

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

      • issueId

        public java.lang.String issueId()
        Returns the value of the Issue annotation.
        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:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object