JUnit運行工具

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)

公共構造函數

JUnit運行工具

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