Skip to content

Commit a4a2f5c

Browse files
committed
Documented the Mockito dependencies required for use.
1 parent ea4cfc9 commit a4a2f5c

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

README.md

+21-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,26 @@ with jqwik.
1212

1313
### Maven and Gradle configuration
1414

15-
Maven:
15+
Keep in mind that you have to explicitly add the Mockito dependencies to your project.
1616

17-
```xml
17+
Currently, there is also a dependency on `mockito-junit-jupiter`.
18+
This allows the use of the `@MockitoSettings` annotation.
19+
20+
#### Maven
1821

22+
```xml
23+
<dependency>
24+
<group>org.mockito</group>
25+
<artifactId>mockito-core</artifactId>
26+
<version>$MOCKITO_VERSION</version>
27+
<scope>test</scope>
28+
</dependency>
29+
<dependency>
30+
<group>org.mockito</group>
31+
<artifactId>mockito-junit-jupiter</artifactId>
32+
<version>$MOCKITO_VERSION</version>
33+
<scope>test</scope>
34+
</dependency>
1935
<dependency>
2036
<group>net.jqwik</group>
2137
<artifactId>jqwik-mockito</artifactId>
@@ -24,9 +40,11 @@ Maven:
2440
</dependency>
2541
```
2642

27-
Gradle:
43+
#### Gradle
2844

2945
```
46+
testImplementation("org.mockito:mockito-core:$MOCKITO_VERSION")
47+
testImplementation("org.mockito:mockito-junit-jupiter:$MOCKITO_VERSION")
3048
testImplementation("net.jqwik:jqwik-mockito:$LATEST_VERSION")
3149
```
3250

0 commit comments

Comments
 (0)