本文整理匯總了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);
}
});
}