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 ()
公共方法
runTest
public static boolean runTest (ITestInvocationListener listener, Test junitTest, String runName)
| 参数 | |
|---|---|
listener |
ITestInvocationListener |
junitTest |
Test |
runName |
String |
| 返回 | |
|---|---|
boolean |
|
| 抛出 | |
|---|---|
DeviceNotAvailableException |
|
runTest
public static boolean runTest (ITestInvocationListener listener, Test junitTest)
| 参数 | |
|---|---|
listener |
ITestInvocationListener |
junitTest |
Test |
| 返回 | |
|---|---|
boolean |
|
| 抛出 | |
|---|---|
DeviceNotAvailableException |
|
runTest
public static boolean runTest (ITestInvocationListener listener, Test junitTest, String runName, TestInformation testInfo)
| 参数 | |
|---|---|
listener |
ITestInvocationListener |
junitTest |
Test |
runName |
String |
testInfo |
TestInformation |
| 返回 | |
|---|---|
boolean |
|
| 抛出 | |
|---|---|
DeviceNotAvailableException |
|