Interface Test

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getId()
      Returns the Test's id.
      java.lang.String getName()
      Returns this Test's name.
      TestSuite getParent()
      Returns this Test's parent, in case this Test is part of a TestSuite.
      java.lang.String getQualifiedId()
      Returns the Test's qualified id, that is, the string made of all the id's parents separated by ".".
      TestReport run()
      Requests this Test to run and produce a report.
      void setId​(java.lang.String id)
      Sets this Test's id.
      void setParent​(TestSuite parent)
      Set this Test's parent.
    • Method Detail

      • getName

        java.lang.String getName()
        Returns this Test's name.
      • getQualifiedId

        java.lang.String getQualifiedId()
        Returns the Test's qualified id, that is, the string made of all the id's parents separated by ".". For example, if this test's id is "C", its parent id is "B" and its grand-parent id is "A", this method should return "A.B.C".
      • getId

        java.lang.String getId()
        Returns the Test's id. The notion of identifier is left to the user of the Test object, which explains why the user may set the id.
      • setId

        void setId​(java.lang.String id)
        Sets this Test's id.
      • run

        TestReport run()
        Requests this Test to run and produce a report. It is critical for the test infrastructure that implementations never throw exceptions from the run method, even if an error occurs internally in the test.
      • getParent

        TestSuite getParent()
        Returns this Test's parent, in case this Test is part of a TestSuite. The returned value may be null.
      • setParent

        void setParent​(TestSuite parent)
        Set this Test's parent.