本文整理汇总了Java中org.gradle.api.internal.tasks.testing.DefaultTestClassRunInfo类的典型用法代码示例。如果您正苦于以下问题:Java DefaultTestClassRunInfo类的具体用法?Java DefaultTestClassRunInfo怎么用?Java DefaultTestClassRunInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DefaultTestClassRunInfo类属于org.gradle.api.internal.tasks.testing包,在下文中一共展示了DefaultTestClassRunInfo类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: filenameScan
import org.gradle.api.internal.tasks.testing.DefaultTestClassRunInfo; //导入依赖的package包/类
private void filenameScan() {
candidateClassFiles.visit(new ClassFileVisitor() {
public void visitClassFile(FileVisitDetails fileDetails) {
String className = fileDetails.getRelativePath().getPathString().replaceAll("\\.class", "").replace('/', '.');
TestClassRunInfo testClass = new DefaultTestClassRunInfo(className);
testClassProcessor.processTestClass(testClass);
}
});
}
示例2: publishTestClass
import org.gradle.api.internal.tasks.testing.DefaultTestClassRunInfo; //导入依赖的package包/类
/**
* In none super class mode a test class is published when the class is a test and it is not abstract. In super class mode it must not publish the class otherwise it will get published multiple
* times (for each extending class).
*/
protected void publishTestClass(boolean isTest, TestClassVisitor classVisitor, boolean superClass) {
if (isTest && !classVisitor.isAbstract() && !superClass) {
String className = Type.getObjectType(classVisitor.getClassName()).getClassName();
testClassProcessor.processTestClass(new DefaultTestClassRunInfo(className));
}
}
示例3: run
import org.gradle.api.internal.tasks.testing.DefaultTestClassRunInfo; //导入依赖的package包/类
@Override
public void run() {
this.candidateClassFiles.visit(new ClassFileVisitor() {
@Override
public void visitClassFile(FileVisitDetails fileDetails) {
String className = fileDetails.getRelativePath().getPathString().replaceAll("\\.class", "").replace('/', '.');
TestClassRunInfo testClass = new DefaultTestClassRunInfo(className);
EclipsePluginTestClassScanner.this.testClassProcessor.processTestClass(testClass);
}
});
}