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

io.quarkus.dev.testing.ExceptionReporting Maven / Gradle / Ivy

package io.quarkus.dev.testing;

import java.util.function.Consumer;

/**
 * Class that is used to notify test classes of failures on the server side.
 * 

* This allows for server side exceptions to be added to the test failure */ public class ExceptionReporting { private static volatile Consumer listener; public static void notifyException(Throwable exception) { Consumer l = listener; if (l != null) { l.accept(exception); } } public static void setListener(Consumer l) { listener = l; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy