com.github.junitrunner.JUnitTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junitrunner Show documentation
Show all versions of junitrunner Show documentation
The extension friendly JUnit Runner with support for plugins
The newest version!
package com.github.junitrunner;
import java.util.List;
import org.junit.runner.Description;
import org.junit.runner.manipulation.Filter;
import org.junit.runners.model.Statement;
public abstract class JUnitTask extends Task {
private boolean filteredOut;
protected JUnitTask() {
}
public boolean isFilteredOut() {
return filteredOut;
}
protected void filterOut() {
filteredOut = true;
}
protected abstract Statement constructInvokeStatement(JUnitRunner jUnitRunner);
protected void filterTask(Filter filter) {
Description description = describe();
if (!filter.shouldRun(description)) {
filteredOut = true;
}
}
@SuppressWarnings("unused")
protected void configureTask(Class> testClass, JUnitPlugin plugin, List errors) {
}
}