Skip to content

Commit

Permalink
Bump version (Mockito)
Browse files Browse the repository at this point in the history
Automated tooling missed the updates for Mockito dependencies.
  • Loading branch information
binkley committed Oct 22, 2023
1 parent 9528056 commit fc4f381
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1644,10 +1644,9 @@ Current limitations:
* You may find _mocking_ helpful for injection. The Java community is not of one
mind on mocking, so use your judgment:
* [Mockito](https://site.mockito.org/) is the "standard" choice, and is a
dependency for the sample projects. For "modern" versions of Mockito, you
should use the `mockito-inline` dependency rather than `mockito-core`
if relevant for your project: it supports
[mocking of static methods](https://frontbackend.com/java/how-to-mock-static-methods-with-mockito).
dependency for the sample projects.
For modern versions of Mockito, please use the `mockito-core` dependency
rather than `mockito-inline`.
See `TheFooTest.shouldRedAlertAsStaticMock` for an example.
Note that this project has updated to Mockito 5.
See [_v5.0.0_ release
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies {

testImplementation "org.junit.jupiter:junit-jupiter:$junitVersion"
testImplementation "org.assertj:assertj-core:$assertJVersion"
testImplementation "org.mockito:mockito-inline:$mockitoVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "com.github.stefanbirkner:system-lambda:$systemLambdaVersion"

// Quiet build -- build works without this, but JUnit complains
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jdkVersion=17
junitVersion=5.9.3
lombokVersion=1.18.30
mainClass=demo.Application
mockitoVersion=5.2.0
mockitoVersion=5.6.0
modernizerPluginVersion=1.8.0
modernizerVersion=2.7.0
pitestJUnit5PluginVersion=1.1.2
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<maven-testing-plugins.version>3.1.2</maven-testing-plugins.version>
<maven-wrapper-plugin.version>3.2.0</maven-wrapper-plugin.version>
<maven.version>3.9.3</maven.version>
<mockito.version>5.2.0</mockito.version>
<mockito.version>5.6.0</mockito.version>
<modernizer.version>2.7.0</modernizer.version>
<owasp.skip>false</owasp.skip>
<pitest-junit5-plugin.version>1.2.0</pitest-junit5-plugin.version>
Expand Down Expand Up @@ -152,7 +152,7 @@
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
Expand Down

0 comments on commit fc4f381

Please sign in to comment.