当前位置: 首页>>代码示例>>Java>>正文


Java ITestRunListener类代码示例

本文整理汇总了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));
}
 
开发者ID:NBANDROIDTEAM,项目名称:NBANDROID-V2,代码行数:16,代码来源:TestLaunchAction.java

示例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);
}
 
开发者ID:facebook,项目名称:buck,代码行数:15,代码来源:InstrumentationTestRunnerTest.java

示例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);
    }
}
 
开发者ID:NBANDROIDTEAM,项目名称:NBANDROID-V2,代码行数:7,代码来源:TestLaunchAction.java

示例4: testStarted

import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
@Override
public void testStarted(TestIdentifier ti) {
    for (ITestRunListener lsnr : delegates) {
        lsnr.testStarted(ti);
    }
}
 
开发者ID:NBANDROIDTEAM,项目名称:NBANDROID-V2,代码行数:7,代码来源:TestLaunchAction.java

示例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);
    }
}
 
开发者ID:NBANDROIDTEAM,项目名称:NBANDROID-V2,代码行数:7,代码来源:TestLaunchAction.java

示例6: testIgnored

import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
@Override
public void testIgnored(TestIdentifier ti) {
    for (ITestRunListener lsnr : delegates) {
        lsnr.testIgnored(ti);
    }
}
 
开发者ID:NBANDROIDTEAM,项目名称:NBANDROID-V2,代码行数:7,代码来源:TestLaunchAction.java

示例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);
    }
}
 
开发者ID:NBANDROIDTEAM,项目名称:NBANDROID-V2,代码行数:7,代码来源:TestLaunchAction.java

示例8: testRunFailed

import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
@Override
public void testRunFailed(String string) {
    for (ITestRunListener lsnr : delegates) {
        lsnr.testRunFailed(string);
    }
}
 
开发者ID:NBANDROIDTEAM,项目名称:NBANDROID-V2,代码行数:7,代码来源:TestLaunchAction.java

示例9: testRunStopped

import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
@Override
public void testRunStopped(long timeElapsed) {
    for (ITestRunListener lsnr : delegates) {
        lsnr.testRunStopped(timeElapsed);
    }
}
 
开发者ID:NBANDROIDTEAM,项目名称:NBANDROID-V2,代码行数:7,代码来源:TestLaunchAction.java

示例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);
    }
}
 
开发者ID:NBANDROIDTEAM,项目名称:NBANDROID-V2,代码行数:7,代码来源:TestLaunchAction.java

示例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);
    }
}
 
开发者ID:NBANDROIDTEAM,项目名称:NBANDROID-V2,代码行数:7,代码来源:TestLaunchAction.java

示例12: createTestListener

import com.android.ddmlib.testrunner.ITestRunListener; //导入依赖的package包/类
@Override
public ITestRunListener createTestListener(Project p) {
    return new TestRunListener(project);
}
 
开发者ID:NBANDROIDTEAM,项目名称:NBANDROID-V2,代码行数:5,代码来源:TestOutputUIDisplayer.java

示例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);
 
开发者ID:NBANDROIDTEAM,项目名称:NBANDROID-V2,代码行数:9,代码来源:TestOutputConsumer.java


注:本文中的com.android.ddmlib.testrunner.ITestRunListener类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。