Class TestEvent

Object
EventObject
TestEvent
All Implemented Interfaces:
Serializable

@Deprecated public final class TestEvent extends EventObject
Deprecated.
To be replaced by JUnit 5 listener mechanism.
Events provided to test listeners when a test begin, complete or fail.
Since:
3.1
See Also:
  • Method Details

    • getSource

      public TestCase getSource()
      Deprecated.
      Returns the TestCase instance which is been run. This allow inspection of the test state, for example by invoking TestCase.configuration().
      Overrides:
      getSource in class EventObject
      Returns:
      the TestCase instance which is been run.
    • getClassName

      public String getClassName()
      Deprecated.
      Returns the fully-qualified name of the class which contain the test method being executed.
      Returns:
      the name of the class which contain the test method being executed.
    • getMethodName

      public String getMethodName()
      Deprecated.
      Returns the name of the test method which is executed, followed by a sequential number. The sequential number is used when the same test method has been executed many time because more than one factory has been found on the classpath.
      Returns:
      the name of the test method.
    • getConfigurationTip

      public Configuration.Key<Boolean> getConfigurationTip()
      Deprecated.
      If a test failure occurred in an optional test, the configuration key for disabling that test. Otherwise null.
      Returns:
      the configuration key for disabling the optional test that failed, or null.