com.nordstrom.automation.junit.MethodWatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit-foundation Show documentation
Show all versions of junit-foundation Show documentation
This is the foundation framework for JUnit automation
package com.nordstrom.automation.junit;
import org.junit.internal.runners.model.ReflectiveCallable;
/**
* This interface defines the methods implemented by JUnit method watchers.
*/
public interface MethodWatcher extends TypeDiscloser, JUnitWatcher {
/**
* Invoked before each test or configuration method is invoked.
*
* @param runner JUnit test runner
* @param child child object of {@code runner} that is being invoked
* @param callable {@link ReflectiveCallable} object being intercepted
*/
void beforeInvocation(Object runner, T child, ReflectiveCallable callable);
/**
* Invoked after each test or configuration method is invoked.
*
* @param runner JUnit test runner
* @param child child object of {@code runner} that was just invoked
* @param callable {@link ReflectiveCallable} object being intercepted
* @param thrown exception thrown by method; {@code null} on normal completion
*/
void afterInvocation(Object runner, T child, ReflectiveCallable callable, Throwable thrown);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy