package Sequenic.T2ext.JUnit; import org.junit.runner.Description; import org.junit.runner.Result; import org.junit.runner.notification.RunListener; public class SensorResetter extends RunListener { @Override public void testStarted(Description description) throws Exception { // Called when an atomic test is about to be started. // Parameters: // description - the description of the test that is about to be run (generally a class and method name) // Put new entry for description in coverage matrix super.testStarted(description); } @Override public void testFinished(Description description) throws Exception { //Put coverage data for description in matrix super.testFinished(description); } @Override public void testRunFinished(Result result) throws Exception { //Write coverage matrix to file system super.testRunFinished(result); } }