JUnitRunUtil

public class JUnitRunUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.testtype.JUnitRunUtil


A helper class for directing a IRemoteTest#run(TestInformation, ITestInvocationListener) call to a Test#run(TestResult) call.

Summary

Public constructors

JUnitRunUtil()

Public methods

static boolean runTest(ITestInvocationListener listener, Test junitTest, String runName)
static boolean runTest(ITestInvocationListener listener, Test junitTest)
static boolean runTest(ITestInvocationListener listener, Test junitTest, String runName, TestInformation testInfo)

Public constructors

JUnitRunUtil

public JUnitRunUtil ()

Public methods

runTest

public static boolean runTest (ITestInvocationListener listener, 
                Test junitTest, 
                String runName)

Parameters
listener ITestInvocationListener

junitTest Test

runName String

Returns
boolean

Throws
DeviceNotAvailableException

runTest

public static boolean runTest (ITestInvocationListener listener, 
                Test junitTest)

Parameters
listener ITestInvocationListener

junitTest Test

Returns
boolean

Throws
DeviceNotAvailableException

runTest

public static boolean runTest (ITestInvocationListener listener, 
                Test junitTest, 
                String runName, 
                TestInformation testInfo)

Parameters
listener ITestInvocationListener

junitTest Test

runName String

testInfo TestInformation

Returns
boolean

Throws
DeviceNotAvailableException