Package sbt.testing

Class NestedTestSelector

  • All Implemented Interfaces:
    java.io.Serializable

    public final class NestedTestSelector
    extends Selector
    implements java.io.Serializable
    Information in addition to a test class name that identifies a test in a nested suite about which an event was fired.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      NestedTestSelector​(java.lang.String suiteId, java.lang.String testName)
      Constructs a new NestedSuiteSelector with given suiteId and testName.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String suiteId()
      An id that, in addition to a test class name, identifies a nested suite that contains a test about which an event was fired.
      java.lang.String testName()
      The name of the test in a nested suite about which an event was fired.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • NestedTestSelector

        public NestedTestSelector​(java.lang.String suiteId,
                                  java.lang.String testName)
        Constructs a new NestedSuiteSelector with given suiteId and testName.
        Parameters:
        suiteId - the id of the nested suite containing the test
        testName - the name of the test
    • Method Detail

      • suiteId

        public java.lang.String suiteId()
        An id that, in addition to a test class name, identifies a nested suite that contains a test about which an event was fired.
        Returns:
        the id of the nested suite containing the test
      • testName

        public java.lang.String testName()
        The name of the test in a nested suite about which an event was fired.
        Returns:
        the name of the test in the nested suite identified by the id returned by suiteId.
      • 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