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

org.junit.internal.runners.statements.RunBefores Maven / Gradle / Ivy

Go to download

A collection of tests that can certify language implementation to be compliant with most recent requirements of the Truffle infrastructure and tooling.

The newest version!
package org.junit.internal.runners.statements;

import java.util.List;

import org.junit.runners.model.FrameworkMethod;
import org.junit.runners.model.Statement;

public class RunBefores extends Statement {
    private final Statement fNext;

    private final Object fTarget;

    private final List fBefores;

    public RunBefores(Statement next, List befores, Object target) {
        fNext = next;
        fBefores = befores;
        fTarget = target;
    }

    @Override
    public void evaluate() throws Throwable {
        for (FrameworkMethod before : fBefores) {
            before.invokeExplosively(fTarget);
        }
        fNext.evaluate();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy