
com.github.masonm.wiremock.UnusedStubsExtensionStandalone Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wiremock-unused-stubs-extension Show documentation
Show all versions of wiremock-unused-stubs-extension Show documentation
Wiremock API extension to find stub mappigns that haven't matched a rquest
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