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

com.github.masonm.JwtExtensionStandalone Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package com.github.masonm;

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

import java.util.Arrays;

public final class JwtExtensionStandalone {
    private JwtExtensionStandalone() {}

    // 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=" + JwtMatcherExtension.class.getName() + "," + JwtStubMappingTransformer.class.getName();
        new WireMockServerRunner().run(newArgs);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy