com.github.tomakehurst.wiremock.core.Options Java Examples

The following examples show how to use com.github.tomakehurst.wiremock.core.Options. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WireMockRuleFactory.java    From github-branch-source-plugin with MIT License 5 votes vote down vote up
public WireMockRule getRule(Options options) {
    if (urlToMock != null && !urlToMock.isEmpty()) {
        return new WireMockRecorderRule(options, urlToMock);
    } else {
        return new WireMockRule(options);
    }
}
 
Example #2
Source File: ManagedWireMockServer.java    From wiremock-extension with MIT License 4 votes vote down vote up
public ManagedWireMockServer(final Options options) {
	super(options);
}
 
Example #3
Source File: ManagedWireMockServer.java    From wiremock-extension with MIT License 4 votes vote down vote up
public static ManagedWireMockServer with(final Options options) {
	return new ManagedWireMockServer(options);
}
 
Example #4
Source File: WireMockRuleFactory.java    From github-branch-source-plugin with MIT License 4 votes vote down vote up
public WireMockRecorderRule(Options options, String url) {
    super(options);
    this.stubFor(get(urlMatching(".*")).atPriority(10).willReturn(aResponse().proxiedFrom(url)));
    this.enableRecordMappings(new SingleRootFileSource(mappingLocation + "/mappings"),
            new SingleRootFileSource(mappingLocation + "/__files"));
}