com.nordstrom.automation.junit.TestClassWatcher 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.TestClass;
/**
* This interface defines the methods implemented by JUnit TestClass watchers. These watchers are registered via a
* ServiceLoader provider configuration file.
*/
public interface TestClassWatcher {
/**
* Invoked when a test class object gets created. These are wrappers around runners and test classes.
*
* @param testClass {@link TestClass} object that was just created
* @param runner {@link org.junit.runners.ParentRunner ParentRunner} object that owns this test class object
*/
void testClassCreated(TestClass testClass, Object runner);
/**
* Called when a runner (test class or suite) is about to be started.
*
* @param testClass {@link TestClass} object for the parent runner
*/
void testClassStarted(TestClass testClass);
/**
* Called when a runner (test class or suite) has finished.
*
* @param testClass {@link TestClass} object for the parent runner
*/
void testClassFinished(TestClass testClass);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy