All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.junitrunner.JUnitTask Maven / Gradle / Ivy

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) {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy