From fc4f38132fa53a36469a405aba90a99e71668938 Mon Sep 17 00:00:00 2001 From: "B. K. Oxley (binkley)" Date: Sun, 22 Oct 2023 16:10:41 -0500 Subject: [PATCH] Bump version (Mockito) Automated tooling missed the updates for Mockito dependencies. --- README.md | 7 +++---- build.gradle | 2 +- gradle.properties | 2 +- pom.xml | 4 ++-- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index fa2b0006..e0f9c0b6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/build.gradle b/build.gradle index 399e1119..447c57db 100644 --- a/build.gradle +++ b/build.gradle @@ -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 diff --git a/gradle.properties b/gradle.properties index 7d672506..f2068299 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/pom.xml b/pom.xml index 3a2affd7..be058296 100644 --- a/pom.xml +++ b/pom.xml @@ -84,7 +84,7 @@ 3.1.2 3.2.0 3.9.3 - 5.2.0 + 5.6.0 2.7.0 false 1.2.0 @@ -152,7 +152,7 @@ org.mockito - mockito-inline + mockito-core ${mockito.version} test