Skip to content
A tool for mocking HTTP services
Java HTML CSS JavaScript XSLT Ruby Other
Branch: master
Clone or download

Latest commit

Tom Akehurst
Latest commit d7cdd27 May 29, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Added a GitHub issue teplate Mar 2, 2018
docs-v2 Documented enhancement to XPath helper permitting use of results in f… May 29, 2020
gradle/wrapper Rolling Gradle version back to 4.10.3 so that Java 7 still works Jan 17, 2020
java7 Restricted JsonUnit implementation of EqualToJson to JRE8, since this… Jan 31, 2020
java8 Simplify code & prove it works over https May 27, 2020
perf-test Added a large stubs GET scenario Jul 29, 2018
sample-war Changed to GA version Jul 8, 2016
scripts Fixed #1279 - added example certificate conf file accidentally excluded Mar 6, 2020
src Implemented #1150 - Support for exempting comparison types in equalToXml May 28, 2020
testlogging Optimised imports May 11, 2013
.gitignore Fixed #1279 - added example certificate conf file accidentally excluded Mar 6, 2020
.ruby-version Added a large stubs GET scenario Jul 29, 2018
.travis.yml Attempt at fixing Travis config so that correct Java version tests ar… Feb 11, 2020
LICENSE.txt Added apache 2.0 licence Dec 4, 2011
README.md Allow stubbing & recording of forward proxy https traffic May 25, 2020
Vagrantfile update vagrantfile to something that can be used to build wiremock, f… Nov 19, 2017
build.gradle Merge branch 'master' into xpath-improvements-bak May 28, 2020
gen-docs.sh Updated gen-docs.sh for docs-v2 Jul 27, 2016
go Upgraded Java versions used in the go script May 18, 2020
gradle.properties Upped Gradle timeouts to so I can push releases on dodgy networks Sep 28, 2019
gradlew - Updated gradle wrapper to latest version Oct 3, 2018
gradlew.bat - Updated gradle wrapper to latest version Oct 3, 2018
jdepend.xsl Added jdepend to build Dec 29, 2012
release-settings.gradle Re-worked to produce separate Java 7 and Java 8+ releases, with up to… Jan 29, 2019

README.md

WireMock - a web service test double for all occasions

Build Status Maven Central

Key Features

  • HTTP response stubbing, matchable on URL, header and body content patterns
  • Request verification
  • Runs in unit tests, as a standalone process or as a WAR app
  • Configurable via a fluent Java API, JSON files and JSON over HTTP
  • Record/playback of stubs
  • Fault injection
  • Per-request conditional proxying
  • Browser proxying for request inspection and replacement
  • Stateful behaviour simulation
  • Configurable response delays

Full documentation can be found at wiremock.org

Questions and Issues

If you have a question about WireMock, or are experiencing a problem you're not sure is a bug please post a message to the WireMock mailing list.

On the other hand if you're pretty certain you've found a bug please open an issue.

Contributing

We welcome bug fixes and new features in the form of pull requests. If you'd like to contribute, please be mindful of the following guidelines:

  • All changes should include suitable tests, whether to demonstrate the bug or exercise and document the new feature.
  • Please make one change per pull request.
  • If the new feature is significantly large/complex/breaks existing behaviour, please first post a summary of your idea on the mailing list to generate a discussion. This will avoid significant amounts of coding time spent on changes that ultimately get rejected.
  • Try to avoid reformats of files that change the indentation, tabs to spaces etc., as this makes reviewing diffs much more difficult.

Building WireMock locally

To run all of WireMock's tests:

./gradlew clean test

To build both JARs (thin and standalone):

./gradlew -c release-settings.gradle :java8:shadowJar

The built JAR will be placed under java8/build/libs.

Developing on IntelliJ IDEA

IntelliJ can't import the gradle build script correctly automatically, so run

./gradlew -c release-settings.gradle :java8:idea

Make sure you have no .idea directory, the plugin generates old style .ipr, .iml & .iws metadata files.

You may have to then set up your project SDK to point at your Java 8 installation.

Then edit the module settings. Remove the "null" Source & Test source folders from all modules. Add wiremock as a module dependency to Java 7 & Java 8.

You can’t perform that action at this time.