fi.jumi.core.discovery.TestFileFinderRunner Maven / Gradle / Ivy
// Copyright © 2011-2013, Esko Luontola
// This software is released under the Apache License 2.0.
// The license text is at http://www.apache.org/licenses/LICENSE-2.0
package fi.jumi.core.discovery;
import fi.jumi.actors.ActorRef;
import javax.annotation.concurrent.ThreadSafe;
@ThreadSafe
public class TestFileFinderRunner implements Runnable {
private final TestFileFinder testFileFinder;
private final ActorRef finderListener;
public TestFileFinderRunner(TestFileFinder testFileFinder, ActorRef finderListener) {
this.testFileFinder = testFileFinder;
this.finderListener = finderListener;
}
@Override
public void run() {
testFileFinder.findTestFiles(finderListener);
}
}