Object
EventObject
TestEvent
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class EventObject
source
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the fully-qualified name of the class which contain the test method being executed.Deprecated.If a test failure occurred in an optional test, the configuration key for disabling that test.Deprecated.Returns the name of the test method which is executed, followed by a sequential number.Deprecated.Returns theTestCase
instance which is been run.Methods inherited from class EventObject
toString
-
Method Details
-
getSource
Deprecated.Returns theTestCase
instance which is been run. This allow inspection of the test state, for example by invokingTestCase.configuration()
.- Overrides:
getSource
in classEventObject
- Returns:
- the
TestCase
instance which is been run.
-
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
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
Deprecated.If a test failure occurred in an optional test, the configuration key for disabling that test. Otherwisenull
.- Returns:
- the configuration key for disabling the optional test that failed, or
null
.
-