
de.bechte.junit.runners.context.statements.builder.ClassStatementBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit-hierarchicalcontextrunner Show documentation
Show all versions of junit-hierarchicalcontextrunner Show documentation
This is a runner implementation that supports context hierarchies in JUnit. For more
details please visit: https://github.com/bechte/junit-hierarchicalcontextrunner/wiki
package de.bechte.junit.runners.context.statements.builder;
import org.junit.runner.Description;
import org.junit.runner.notification.RunNotifier;
import org.junit.runners.model.Statement;
import org.junit.runners.model.TestClass;
/**
* The {@link ClassStatementBuilder} interfaces provides a simple Builder mechanism, used to create {@link Statement}s.
* The interface allows that all builders can be processed in a common manner.
*/
public interface ClassStatementBuilder {
/**
* Creates a {@link Statement} for the given attributes.
*
* @param testClass the {@link TestClass} to create the {@link Statement} for
* @param next the next {@link Statement} to evaluate after the new {@link Statement} has been processed
* @param description the {@link Description} that should be used with the {@link RunNotifier}
* @param notifier the {@link RunNotifier} to be used to notify about events
* @return the created {@link Statement} (must not be {@code null}!)
*/
public Statement createStatement(final TestClass testClass, final Statement next,
final Description description, final RunNotifier notifier);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy