org.testng.junit
Class JUnit4TestRunner

java.lang.Object  extended by org.testng.junit.JUnit4TestRunner
All Implemented Interfaces:
IJUnitTestRunner

public class JUnit4TestRunner
extends Object
implements IJUnitTestRunner

A JUnit TestRunner that records/triggers all information/events necessary to TestNG.

Author:
Lukas Jungmann


Constructor Summary
JUnit4TestRunner()
           
JUnit4TestRunner(org.testng.internal.ITestResultNotifier tr)
           
 
Method Summary
 List<ITestNGMethod>getTestMethods()
          Needed from TestRunner in order to figure out what JUnit test methods were run.
 voidrun(Class testClass, String... methods)
          A start implementation that ignores the TestResult
 voidsetInvokedMethodListeners(List<IInvokedMethodListener> listeners)
           
 voidsetTestResultNotifier(org.testng.internal.ITestResultNotifier notifier)
           
 org.junit.runner.Resultstart(Class testCase, String... methods)
          Starts a test run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnit4TestRunner

public JUnit4TestRunner()

JUnit4TestRunner

public JUnit4TestRunner(org.testng.internal.ITestResultNotifier tr)
Method Detail

getTestMethods

public List<ITestNGMethod> getTestMethods()
Needed from TestRunner in order to figure out what JUnit test methods were run.

Specified by:
getTestMethods in interface IJUnitTestRunner
Returns:
the list of all JUnit test methods run

setTestResultNotifier

public void setTestResultNotifier(org.testng.internal.ITestResultNotifier notifier)
Specified by:
setTestResultNotifier in interface IJUnitTestRunner

setInvokedMethodListeners

public void setInvokedMethodListeners(List<IInvokedMethodListener> listeners)
Specified by:
setInvokedMethodListeners in interface IJUnitTestRunner

run

public void run(Class testClass,                String... methods)
A start implementation that ignores the TestResult

Specified by:
run in interface IJUnitTestRunner
Parameters:
testClass - the JUnit test class

start

public org.junit.runner.Result start(Class testCase,                                     String... methods)
Starts a test run. Analyzes the command line arguments and runs the given test suite.



Copyright © 2012. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14