Java 类org.gradle.api.internal.tasks.testing.TestClassRunInfo 实例源码

项目:Reer    文件:MaxNParallelTestClassProcessor.java   
@Override
public void processTestClass(TestClassRunInfo testClass) {
    TestClassProcessor processor;
    if (processors.size() < maxProcessors) {
        processor = factory.create();
        Actor actor = actorFactory.createActor(processor);
        processor = actor.getProxy(TestClassProcessor.class);
        actors.add(actor);
        processors.add(processor);
        processor.startProcessing(resultProcessor);
    } else {
        processor = processors.get(pos);
        pos = (pos + 1) % processors.size();
    }
    processor.processTestClass(testClass);
}
项目:gradle-dockerized-test-plugin    文件:ForkingTestClassProcessor.java   
@Override
public void processTestClass(TestClassRunInfo testClass) {
    int i = 0;
    RuntimeException exception = null;
    while (remoteProcessor == null && i < 10)
    {
        try
        {
            remoteProcessor = forkProcess();
            exception = null;
            break;
        }
        catch (RuntimeException e)
        {
            exception = e;
            i++;
        }
    }

    if (exception != null) throw exception;
    remoteProcessor.processTestClass(testClass);
}
项目:Reer    文件:RestartEveryNTestClassProcessor.java   
@Override
public void processTestClass(TestClassRunInfo testClass) {
    if (processor == null) {
        processor = factory.create();
        processor.startProcessing(resultProcessor);
    }
    processor.processTestClass(testClass);
    testCount++;
    if (testCount == restartEvery) {
        endBatch();
    }
}
项目:Reer    文件:TestWorker.java   
@Override
public void processTestClass(final TestClassRunInfo testClass) {
    Thread.currentThread().setName("Test worker");
    try {
        processor.processTestClass(testClass);
    } finally {
        // Clean the interrupted status
        Thread.interrupted();
    }
}
项目:Reer    文件:ForkingTestClassProcessor.java   
@Override
public void processTestClass(TestClassRunInfo testClass) {
    if (remoteProcessor == null) {
        workerCompletion = owner.operationStart();
        remoteProcessor = forkProcess();
    }

    remoteProcessor.processTestClass(testClass);
}
项目:Reer    文件:TestNGTestClassProcessor.java   
@Override
public void processTestClass(TestClassRunInfo testClass) {
    // TODO - do this inside some 'testng' suite, so that failures and logging are attached to 'testng' rather than some 'test worker'
    try {
        testClasses.add(applicationClassLoader.loadClass(testClass.getTestClassName()));
    } catch (Throwable e) {
        throw new GradleException(String.format("Could not load test class '%s'.", testClass.getTestClassName()), e);
    }
}
项目:Reer    文件:DefaultTestClassScanner.java   
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);
        }
    });
}
项目:ide-plugins    文件:EclipsePluginTestClassScanner.java   
@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);
        }
    });
}
项目:Pushjet-Android    文件:TestNGTestClassProcessor.java   
public void processTestClass(TestClassRunInfo testClass) {
    try {
        testClasses.add(applicationClassLoader.loadClass(testClass.getTestClassName()));
    } catch (Throwable e) {
        throw new GradleException(String.format("Could not load test class '%s'.", testClass.getTestClassName()), e);
    }
}
项目:Pushjet-Android    文件:RestartEveryNTestClassProcessor.java   
public void processTestClass(TestClassRunInfo testClass) {
    if (processor == null) {
        processor = factory.create();
        processor.startProcessing(resultProcessor);
    }
    processor.processTestClass(testClass);
    testCount++;
    if (testCount == restartEvery) {
        endBatch();
    }
}
项目:Pushjet-Android    文件:MaxNParallelTestClassProcessor.java   
public void processTestClass(TestClassRunInfo testClass) {
    TestClassProcessor processor;
    if (processors.size() < maxProcessors) {
        processor = factory.create();
        Actor actor = actorFactory.createActor(processor);
        processor = actor.getProxy(TestClassProcessor.class);
        actors.add(actor);
        processors.add(processor);
        processor.startProcessing(resultProcessor);
    } else {
        processor = processors.get(pos);
        pos = (pos + 1) % processors.size();
    }
    processor.processTestClass(testClass);
}
项目:Pushjet-Android    文件:DefaultTestClassScanner.java   
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);
        }
    });
}
项目:Pushjet-Android    文件:TestWorker.java   
public void processTestClass(final TestClassRunInfo testClass) {
    Thread.currentThread().setName("Test worker");
    try {
        processor.processTestClass(testClass);
    } finally {
        // Clean the interrupted status
        Thread.interrupted();
    }
}
项目:Pushjet-Android    文件:ForkingTestClassProcessor.java   
public void processTestClass(TestClassRunInfo testClass) {
    if (remoteProcessor == null) {
        remoteProcessor = forkProcess();
    }

    remoteProcessor.processTestClass(testClass);
}
项目:Pushjet-Android    文件:TestNGTestClassProcessor.java   
public void processTestClass(TestClassRunInfo testClass) {
    try {
        testClasses.add(applicationClassLoader.loadClass(testClass.getTestClassName()));
    } catch (Throwable e) {
        throw new GradleException(String.format("Could not load test class '%s'.", testClass.getTestClassName()), e);
    }
}
项目:Pushjet-Android    文件:RestartEveryNTestClassProcessor.java   
public void processTestClass(TestClassRunInfo testClass) {
    if (processor == null) {
        processor = factory.create();
        processor.startProcessing(resultProcessor);
    }
    processor.processTestClass(testClass);
    testCount++;
    if (testCount == restartEvery) {
        endBatch();
    }
}
项目:Pushjet-Android    文件:MaxNParallelTestClassProcessor.java   
public void processTestClass(TestClassRunInfo testClass) {
    TestClassProcessor processor;
    if (processors.size() < maxProcessors) {
        processor = factory.create();
        Actor actor = actorFactory.createActor(processor);
        processor = actor.getProxy(TestClassProcessor.class);
        actors.add(actor);
        processors.add(processor);
        processor.startProcessing(resultProcessor);
    } else {
        processor = processors.get(pos);
        pos = (pos + 1) % processors.size();
    }
    processor.processTestClass(testClass);
}
项目:Pushjet-Android    文件:DefaultTestClassScanner.java   
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);
        }
    });
}
项目:Pushjet-Android    文件:TestWorker.java   
public void processTestClass(final TestClassRunInfo testClass) {
    Thread.currentThread().setName("Test worker");
    try {
        processor.processTestClass(testClass);
    } finally {
        // Clean the interrupted status
        Thread.interrupted();
    }
}
项目:Pushjet-Android    文件:ForkingTestClassProcessor.java   
public void processTestClass(TestClassRunInfo testClass) {
    if (remoteProcessor == null) {
        remoteProcessor = forkProcess();
    }

    remoteProcessor.processTestClass(testClass);
}
项目:Reer    文件:JUnitTestClassProcessor.java   
@Override
public void processTestClass(TestClassRunInfo testClass) {
    LOGGER.debug("Executing test class {}", testClass.getTestClassName());
    executer.execute(testClass.getTestClassName());
}
项目:ide-plugins    文件:EclipseTestExecuter.java   
@Override
public void processTestClass(TestClassRunInfo testClassRunInfo) {
    this.classNames.add(testClassRunInfo.getTestClassName());
}
项目:Pushjet-Android    文件:JUnitTestClassProcessor.java   
public void processTestClass(TestClassRunInfo testClass) {
    LOGGER.debug("Executing test class {}", testClass.getTestClassName());
    executer.execute(testClass.getTestClassName());
}
项目:Pushjet-Android    文件:JUnitTestClassProcessor.java   
public void processTestClass(TestClassRunInfo testClass) {
    LOGGER.debug("Executing test class {}", testClass.getTestClassName());
    executer.execute(testClass.getTestClassName());
}
项目:Reer    文件:RemoteTestClassProcessor.java   
/**
 * Does not block.
 */
void processTestClass(TestClassRunInfo testClass);
项目:Pushjet-Android    文件:RemoteTestClassProcessor.java   
/**
 * Does not block.
 */
void processTestClass(TestClassRunInfo testClass);
项目:Pushjet-Android    文件:RemoteTestClassProcessor.java   
/**
 * Does not block.
 */
void processTestClass(TestClassRunInfo testClass);