Class KnownFailuresList.Entry

java.lang.Object
com.sun.javatest.KnownFailuresList.Entry
All Implemented Interfaces:
Comparable<KnownFailuresList.Entry>
Enclosing class:
KnownFailuresList

public static final class KnownFailuresList.Entry extends Object implements Comparable<KnownFailuresList.Entry>
An entry in the exclude list.
  • Constructor Details

    • Entry

      public Entry(String u, String tc, String[] b, String s)
      Create an ExcludeList entry.
      Parameters:
      u - The URL for the test, specified relative to the test suite root.
      tc - One or more test cases within the test to be excluded.
      b - An array of bug identifiers, justifying why the test is excluded.
      s - A short synopsis of the reasons why the test is excluded.
  • Method Details

    • read

      public static KnownFailuresList.Entry read(String text) throws KnownFailuresList.Fault
      Create an entry from a string. The string should be formatted as though it were a line of text in an exclude file.
      Parameters:
      text - The text to be read
      Returns:
      the first entry read from the supplied text
      Throws:
      KnownFailuresList.Fault - if there is a problem reading the entry.
    • compareTo

      public int compareTo(KnownFailuresList.Entry e)
      Specified by:
      compareTo in interface Comparable<KnownFailuresList.Entry>
    • containsTestCase

      public boolean containsTestCase(String s)
    • getRelativeURL

      public String getRelativeURL()
      Get the relative URL identifying the test referenced by this entry.
      Returns:
      the relative URL identifying the test referenced by this entry
    • getTestCases

      public String getTestCases()
      Get the (possibly empty) list of test cases for this entry. An entry can have zero, one, or a comma separated list of TCs.
      Returns:
      List, or null if there are no test cases.
    • getTestCaseList

      public String[] getTestCaseList()
      Get the same data as getTestCases(), but split into many Strings This method is costly, so use with care.
      Returns:
      The parsed comma list, or null if there are no test cases.
    • getBugIdStrings

      public String[] getBugIdStrings()
      Get the set of bug IDs referenced by this entry.
      Returns:
      the bugs referenced by the entry
    • getNotes

      public String getNotes()
      Get a short description associated with this entry. This should normally give details about why the test has been excluded.
      Returns:
      a short description associated with this entry
    • equals

      public boolean equals(Object o)
      Compare this entry against another.
      Overrides:
      equals in class Object
      Parameters:
      o - the object to compare against
      Returns:
      true is the objects are bothe ExcludeList.Entries containing the same details
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object