Package org.opengis.test
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class EventObject
source
-
-
Method Summary
Modifier and Type Method Description String
getClassName()
Deprecated.Returns the fully-qualified name of the class which contain the test method being executed.Configuration.Key<Boolean>
getConfigurationTip()
Deprecated.If a test failure occurred in an optional test, the configuration key for disabling that test.String
getMethodName()
Deprecated.Returns the name of the test method which is executed, followed by a sequential number.TestCase
getSource()
Deprecated.Returns theTestCase
instance which is been run.-
Methods inherited from class EventObject
toString
-
-
-
-
Method Detail
-
getSource
public TestCase 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
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. Otherwisenull
.- Returns:
- the configuration key for disabling the optional test that failed, or
null
.
-
-