Skip to content

Commit

Permalink
Merge pull request #195 from Smartmind12/patch-4
Browse files Browse the repository at this point in the history
Update java-junit.md
  • Loading branch information
oleg-nenashev authored Oct 2, 2023
2 parents d10e3eb + 2d4784d commit fc63490
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions _docs/quickstart/java-junit.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ To send the requests, we will use the embedded HTTP client available in Java 11+
If you want to add a Java 1.8 test, you will need to add an external HTTP Client implementation
like [Apache HttpClient](https://hc.apache.org/httpcomponents-client-5.2.x/#).

### Maven
{% codetabs %}

{% codetabs Maven %}

```xml
<dependency>
Expand All @@ -43,13 +45,19 @@ like [Apache HttpClient](https://hc.apache.org/httpcomponents-client-5.2.x/#).
</dependency>
```

### Gradle
{% endcodetab %}

{% codetabs Gradle Groovy %}

```groovy
testImplementation "org.wiremock:wiremock:{{ site.wiremock_version }}"
testImplementation "org.assertj:assertj-core:3.24.2"
```

{% endcodetab %}

{% endcodetabs %}

## Add the WireMock rule

WireMock ships with some JUnit rules to manage the server's lifecycle
Expand Down

0 comments on commit fc63490

Please sign in to comment.