![JAR search and dependency download from the Maven repository](/logo.png)
org.mockserver.testing.closurecallback.ViaWebSocket Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockserver-integration-testing-no-dependencies Show documentation
Show all versions of mockserver-integration-testing-no-dependencies Show documentation
A module used to simplify integration testing of all MockServer versions by sharing commons integration testing components
The newest version!
package org.mockserver.testing.closurecallback;
import org.mockserver.closurecallback.websocketregistry.LocalCallbackRegistry;
public class ViaWebSocket {
public static void viaWebSocket(RunnableThatThrows runnableThatThrows) throws Exception {
try {
LocalCallbackRegistry.enabled = false;
runnableThatThrows.run();
} finally {
LocalCallbackRegistry.enabled = true;
}
}
public interface RunnableThatThrows {
void run() throws Exception;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy