JUnitRunUtil

public class JUnitRunUtil
extends Object

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


用于将IRemoteTest#run(TestInformation, ITestInvocationListener)调用定向到Test#run(TestResult)调用的帮助程序类。

概括

公共构造函数

JUnitRunUtil ()

公共方法

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)

公共构造函数

JUnitRunUtil

public JUnitRunUtil ()

公共方法

运行测试

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

参数
listener ITestInvocationListener

junitTest Test

runName String

退货
boolean

投掷
DeviceNotAvailableException

运行测试

public static boolean runTest (ITestInvocationListener listener, 
                Test junitTest)

参数
listener ITestInvocationListener

junitTest Test

退货
boolean

投掷
DeviceNotAvailableException

运行测试

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

参数
listener ITestInvocationListener

junitTest Test

runName String

testInfo TestInformation

退货
boolean

投掷
DeviceNotAvailableException