All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Search JAR files by class name

Source code of the class part of junit version 4.12

Go to download Show more of this group Show artifacts with the name junit
package org.junit.rules;

import org.junit.runner.Description;
import org.junit.runners.model.Statement;

 * Runs a collection of rules on a statement.
 * @since 4.9
public class RunRules extends Statement {
    private final Statement statement;

    public RunRules(Statement base, Iterable rules, Description description) {
        statement = applyAll(base, rules, description);

    public void evaluate() throws Throwable {

    private static Statement applyAll(Statement result, Iterable rules,
            Description description) {
        for (TestRule each : rules) {
            result = each.apply(result, description);
        return result;

© 2018 Weber Informatics LLC