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

org.mockserver.testing.closurecallback.ViaWebSocket Maven / Gradle / Ivy

Go to download

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