本文整理汇总了Java中com.android.ddmlib.testrunner.ITestRunListener类的典型用法代码示例。如果您正苦于以下问题:Java ITestRunListener类的具体用法?Java ITestRunListener怎么用?Java ITestRunListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ITestRunListener类属于com.android.ddmlib.testrunner包,在下文中一共展示了ITestRunListener类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TestRunListener
import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
public TestRunListener(final Project project) {
Preconditions.checkNotNull(project);
delegates = Lists.newArrayList(Iterables.concat(
Collections.singleton(simpleLsnr),
Iterables.transform(
project.getLookup().lookupAll(TestOutputConsumer.class),
new Function<TestOutputConsumer, ITestRunListener>() {
@Override
public ITestRunListener apply(TestOutputConsumer input) {
return input.createTestListener(project);
}
})));
LOG.log(Level.FINE, "Sending test output to {0}", Iterables.toString(delegates));
}
示例2: testSetTrimLinesHappyPath
import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
/** Just verifies the reflection is legit */
@Test
public void testSetTrimLinesHappyPath() throws Throwable {
IShellEnabledDevice shellEnabledDevice = EasyMock.createMock(IShellEnabledDevice.class);
EasyMock.replay(shellEnabledDevice);
RemoteAndroidTestRunner runner =
new RemoteAndroidTestRunner("foobar", "blah", shellEnabledDevice);
Field field = RemoteAndroidTestRunner.class.getDeclaredField("mParser");
field.setAccessible(true);
field.set(runner, new InstrumentationResultParser("fooBar", new ArrayList<ITestRunListener>()));
InstrumentationTestRunner.setTrimLine(runner, true);
}
示例3: testRunStarted
import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
@Override
public void testRunStarted(String string, int testCount) {
for (ITestRunListener lsnr : delegates) {
lsnr.testRunStarted(string, testCount);
}
}
示例4: testStarted
import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
@Override
public void testStarted(TestIdentifier ti) {
for (ITestRunListener lsnr : delegates) {
lsnr.testStarted(ti);
}
}
示例5: testFailed
import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
@Override
public void testFailed(TestIdentifier ti, String trace) {
for (ITestRunListener lsnr : delegates) {
lsnr.testFailed(ti, trace);
}
}
示例6: testIgnored
import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
@Override
public void testIgnored(TestIdentifier ti) {
for (ITestRunListener lsnr : delegates) {
lsnr.testIgnored(ti);
}
}
示例7: testEnded
import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
@Override
public void testEnded(TestIdentifier ti, Map<String, String> map) {
for (ITestRunListener lsnr : delegates) {
lsnr.testEnded(ti, map);
}
}
示例8: testRunFailed
import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
@Override
public void testRunFailed(String string) {
for (ITestRunListener lsnr : delegates) {
lsnr.testRunFailed(string);
}
}
示例9: testRunStopped
import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
@Override
public void testRunStopped(long timeElapsed) {
for (ITestRunListener lsnr : delegates) {
lsnr.testRunStopped(timeElapsed);
}
}
示例10: testRunEnded
import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
@Override
public void testRunEnded(long timeElapsed, Map<String, String> map) {
for (ITestRunListener lsnr : delegates) {
lsnr.testRunEnded(timeElapsed, map);
}
}
示例11: testAssumptionFailure
import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
@Override
public void testAssumptionFailure(TestIdentifier ti, String msg) {
for (ITestRunListener lsnr : delegates) {
lsnr.testAssumptionFailure(ti, msg);
}
}
示例12: createTestListener
import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
@Override
public ITestRunListener createTestListener(Project p) {
return new TestRunListener(project);
}
示例13: createTestListener
import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
/**
* Creates a test listener.
*
* @param project a project
* @return the corresponding platform, or null if the project was null, not
* an Android project, or otherwise had a problem
*/
ITestRunListener createTestListener(Project project);