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

com.nordstrom.automation.junit.FireTestFinished Maven / Gradle / Ivy

There is a newer version: 17.1.1
Show newest version
package com.nordstrom.automation.junit;

import java.util.concurrent.Callable;

import org.junit.internal.runners.model.EachTestNotifier;

import net.bytebuddy.implementation.bind.annotation.SuperCall;
import net.bytebuddy.implementation.bind.annotation.This;

/**
 * This class declares the interceptor for the {@link org.junit.internal.runners.model.EachTestNotifier#fireTestFinished
 * fireTestFinished} method.
 */
public class FireTestFinished {

    /**
     * Interceptor for the {@link org.junit.internal.runners.model.EachTestNotifier#fireTestFinished fireTestFinished}
     * method.
     * 
     * @param notifier underlying run notifier
     * @param proxy callable proxy for the intercepted method
     * @throws Exception {@code anything} (exception thrown by the intercepted method)
     */
    public static void intercept(@This final EachTestNotifier notifier, @SuperCall final Callable proxy)
            throws Exception {
        
        LifecycleHooks.callProxy(proxy);
        EachTestNotifierInit.releaseMappingsFor(notifier);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy