
de.bechte.junit.runners.context.statements.MethodStatementExecutor 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;
import org.junit.internal.runners.model.EachTestNotifier;
/**
* The {@link MethodStatementExecutor} extends the {@link StatementExecutor}, providing additional notifications when
* the test is started and finished.
*
* @see StatementExecutor
*/
public class MethodStatementExecutor extends StatementExecutor {
@Override
protected void beforeExecution(final EachTestNotifier notifier) {
notifier.fireTestStarted();
}
@Override
protected void afterExecution(final EachTestNotifier notifier) {
notifier.fireTestFinished();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy