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 ITestListenerDeprecated.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 ITestResultNotifierDeprecated.private final ITestObjectFactoryDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionJUnit4TestRunner(ITestObjectFactory objectFactory, ITestResultNotifier tr) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprivate ITestResultcreateTestResult(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 booleanisAssumptionFailed(org.junit.runner.notification.Failure failure) Deprecated.voidDeprecated.Astartimplementation that ignores theTestResultvoidDeprecated.org.junit.runner.ResultDeprecated.Starts a test run.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getTestMethodsin interfaceIJUnitTestRunner- Returns:
- the list of all JUnit test methods run
-
setInvokedMethodListeners
Deprecated.- Specified by:
setInvokedMethodListenersin interfaceIJUnitTestRunner
-
run
Deprecated.Astartimplementation that ignores theTestResult- Specified by:
runin 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