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.runners.model.FrameworkMethod;
/**
* This interface defines the methods implemented by JUnit method watchers.
*/
public interface MethodWatcher {
/**
* Invoked before each test or configuration method is invoked
*
* @param target "enhanced" object upon which the method was invoked
* @param method {@link FrameworkMethod} object for the invoked method
* @param params method invocation parameters
*/
void beforeInvocation(Object target, FrameworkMethod method, Object... params);
/**
* Invoked after each test or configuration method is invoked
*
* @param target "enhanced" object upon which the method was invoked
* @param method {@link FrameworkMethod} object for the invoked method
* @param thrown exception thrown by method; {@code null} on normal completion
*/
void afterInvocation(Object target, FrameworkMethod method, Throwable thrown);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy