Package org.testng.junit
Class JUnit4TestRunner
java.lang.Object
org.testng.junit.JUnit4TestRunner
- All Implemented Interfaces:
IJUnitTestRunner
Deprecated.
A JUnit TestRunner that records/triggers all information/events necessary to TestNG.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ITestListener
Deprecated.private final Map
<org.junit.runner.Description, ITestResult> Deprecated.private Collection
<IInvokedMethodListener> Deprecated.private final List
<ITestListener> Deprecated.private final List
<ITestNGMethod> Deprecated.private final ITestResultNotifier
Deprecated.private final ITestObjectFactory
Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionJUnit4TestRunner
(ITestObjectFactory objectFactory, ITestResultNotifier tr) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprivate ITestResult
createTestResult
(ITestObjectFactory objectFactory, org.junit.runner.Description test) Deprecated.Deprecated.Needed from TestRunner in order to figure out what JUnit test methods were run.private static boolean
isAssumptionFailed
(org.junit.runner.notification.Failure failure) Deprecated.void
Deprecated.Astart
implementation that ignores theTestResult
void
Deprecated.org.junit.runner.Result
Deprecated.Starts a test run.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.testng.junit.IJUnitTestRunner
setTestResultNotifier
-
Field Details
-
objectFactory
Deprecated. -
m_parentRunner
Deprecated. -
m_listeners
Deprecated. -
m_methods
Deprecated. -
m_invokeListeners
Deprecated. -
m_foundMethods
Deprecated. -
m_exitCodeListener
Deprecated.
-
-
Constructor Details
-
JUnit4TestRunner
Deprecated.
-
-
Method Details
-
getTestMethods
Deprecated.Needed from TestRunner in order to figure out what JUnit test methods were run.- Specified by:
getTestMethods
in interfaceIJUnitTestRunner
- Returns:
- the list of all JUnit test methods run
-
setInvokedMethodListeners
Deprecated.- Specified by:
setInvokedMethodListeners
in interfaceIJUnitTestRunner
-
run
Deprecated.Astart
implementation that ignores theTestResult
- Specified by:
run
in interfaceIJUnitTestRunner
- Parameters:
testClass
- the JUnit test class
-
start
Deprecated.Starts a test run. Analyzes the command line arguments and runs the given test suite.- Parameters:
testCase
- The test classmethods
- The test methods- Returns:
- The result
-
createTestResult
private ITestResult createTestResult(ITestObjectFactory objectFactory, org.junit.runner.Description test) Deprecated. -
isAssumptionFailed
private static boolean isAssumptionFailed(org.junit.runner.notification.Failure failure) Deprecated.
-
7.7.0