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

de.bechte.junit.runners.context.statements.MethodStatementExecutor Maven / Gradle / Ivy

Go to download

This is a runner implementation that supports context hierarchies in JUnit. For more details please visit: https://github.com/bechte/junit-hierarchicalcontextrunner/wiki

There is a newer version: 4.12.2
Show newest version
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