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

com.github.masonm.wiremock.UnusedStubsExtensionStandalone Maven / Gradle / Ivy

The newest version!
package com.github.masonm.wiremock;

import com.github.tomakehurst.wiremock.standalone.WireMockServerRunner;

import java.util.Arrays;

public final class UnusedStubsExtensionStandalone {
    private UnusedStubsExtensionStandalone() {}

    // When WireMock is run in standalone mode, WireMockServerRunner.run() is the entry point,
    // so we just delegate to that, passing along a CSV string with each extension class to load
    public static void main(String... args) {
        String[] newArgs = Arrays.copyOf(args, args.length + 1);
        newArgs[args.length] = "--extensions=" + UnusedStubsAdminExtension.class.getName();
        new WireMockServerRunner().run(newArgs);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy