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

net.openhft.chronicle.testframework.internal.ExceptionTracker Maven / Gradle / Ivy

package net.openhft.chronicle.testframework.internal;

import org.jetbrains.annotations.NotNull;

import java.util.Map;
import java.util.function.Function;
import java.util.function.Predicate;

/**
 * A test utility class for recording and executing assertions about the presence (or absence) of exceptions
 *
 * @param  The class used to represent thrown exceptions
 * @deprecated use {@link net.openhft.chronicle.testframework.exception.ExceptionTracker}
 */
@Deprecated(/* To be removed in x.25 */)
public interface ExceptionTracker extends net.openhft.chronicle.testframework.exception.ExceptionTracker {

    /**
     * @deprecated use {@link net.openhft.chronicle.testframework.exception.ExceptionTracker#create(Function, Function, Runnable, Map, Predicate, Function)}
     */
    @Deprecated(/* To be removed in x.25 */)
    static  ExceptionTracker create(@NotNull final Function messageExtractor,
                                          @NotNull final Function throwableExtractor,
                                          @NotNull final Runnable resetRunnable,
                                          @NotNull final Map exceptions,
                                          @NotNull final Predicate ignorePredicate,
                                          @NotNull final Function exceptionRenderer) {
        return (ExceptionTracker) net.openhft.chronicle.testframework.exception.ExceptionTracker.create(
                messageExtractor, throwableExtractor, resetRunnable, exceptions, ignorePredicate, exceptionRenderer);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy