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


Java RunnerScheduler.finished方法代码示例

本文整理汇总了Java中org.junit.runners.model.RunnerScheduler.finished方法的典型用法代码示例。如果您正苦于以下问题:Java RunnerScheduler.finished方法的具体用法?Java RunnerScheduler.finished怎么用?Java RunnerScheduler.finished使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.junit.runners.model.RunnerScheduler的用法示例。


在下文中一共展示了RunnerScheduler.finished方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: runChildren

import org.junit.runners.model.RunnerScheduler; //导入方法依赖的package包/类
private void runChildren(@SuppressWarnings("hiding") final RunNotifier notifier) {
    RunnerScheduler currentScheduler = scheduler;
    try {
        List<FrameworkMethod> roots = graph.getRoots().stream().map(r -> nameToMethod.get(r)).collect(Collectors.toList());
        for (FrameworkMethod each : roots) {
            currentScheduler.schedule(new Runnable() {
                @Override
                public void run() {
                    ConcurrentDependsOnRunner.this.runChild(each, notifier);
                }
            });
        }
    } finally {
        currentScheduler.finished();
    }
}
 
开发者ID:aafuks,项目名称:aaf-junit,代码行数:17,代码来源:ConcurrentDependsOnRunner.java

示例2: runChildren

import org.junit.runners.model.RunnerScheduler; //导入方法依赖的package包/类
private void runChildren(@SuppressWarnings("hiding") final RunNotifier notifier) {
    RunnerScheduler currentScheduler = scheduler;
    try {
        List<Runner> roots = graph.getRoots().stream().map(r -> nameToRunner.get(r)).collect(Collectors.toList());
        for (Runner each : roots) {
            currentScheduler.schedule(new Runnable() {
                @Override
                public void run() {
                    ConcurrentDependsOnClasspathSuite.this.runChild(each, notifier);
                }
            });
        }
    } finally {
        currentScheduler.finished();
    }
}
 
开发者ID:aafuks,项目名称:aaf-junit,代码行数:17,代码来源:ConcurrentDependsOnClasspathSuite.java

示例3: runChildren

import org.junit.runners.model.RunnerScheduler; //导入方法依赖的package包/类
private void runChildren(final RunNotifier notifier) {
    final RunnerScheduler scheduler = fScheduler;
    try {
        for (final T each : getFilteredChildren()) {
            scheduler.schedule(new Runnable() {
                public void run() {
                    ParentRunner.this.runChild(each, notifier);
                }
            });
        }
    } finally {
        scheduler.finished();
    }
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:15,代码来源:ParentRunner.java

示例4: runChildren

import org.junit.runners.model.RunnerScheduler; //导入方法依赖的package包/类
private void runChildren(final RunNotifier notifier) {
    final RunnerScheduler currentScheduler = scheduler;
    try {
        for (final FrameworkMethod each : getFilteredChildren()) {
            currentScheduler.schedule(new Runnable() {
                public void run() {
                    runChild(each, notifier);
                }
            });
        }
    } finally {
        currentScheduler.finished();
    }
}
 
开发者ID:naver,项目名称:pinpoint,代码行数:15,代码来源:PinpointPluginTestRunner.java

示例5: runChildren

import org.junit.runners.model.RunnerScheduler; //导入方法依赖的package包/类
private void runChildren(final RunNotifier notifier) {
    final RunnerScheduler currentScheduler = scheduler;

    try {
        for (final Runner each : getFilteredChildren()) {
            currentScheduler.schedule(new Runnable() {
                public void run() {
                    runChild(each, notifier);
                }
            });
        }
    } finally {
        currentScheduler.finished();
    }
}
 
开发者ID:naver,项目名称:pinpoint,代码行数:16,代码来源:PinpointPluginTestSuite.java


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