This is an automated email from the ASF dual-hosted git repository. slachiewicz pushed a commit to branch maven-plugin-tools in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git
commit 8b02cb658c9917e33808ab7d58b15f696949d5c9 Author: Slawomir Jaranowski <[email protected]> AuthorDate: Tue Nov 30 20:24:36 2021 +0100 Bump mockito-core and commons-io Since java 8 is available in project we can track the newest versions Closes #78 --- pom.xml | 4 ++-- .../org/apache/maven/plugins/invoker/InvokerPropertiesTest.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 99cff2c..02491ca 100644 --- a/pom.xml +++ b/pom.xml @@ -240,7 +240,7 @@ under the License. <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> - <version>2.6</version> + <version>2.11.0</version> </dependency> <dependency> <groupId>org.codehaus.plexus</groupId> @@ -273,7 +273,7 @@ under the License. <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> - <version>2.28.2</version> + <version>4.1.0</version> <scope>test</scope> </dependency> <dependency> diff --git a/src/test/java/org/apache/maven/plugins/invoker/InvokerPropertiesTest.java b/src/test/java/org/apache/maven/plugins/invoker/InvokerPropertiesTest.java index df72222..afd9990 100644 --- a/src/test/java/org/apache/maven/plugins/invoker/InvokerPropertiesTest.java +++ b/src/test/java/org/apache/maven/plugins/invoker/InvokerPropertiesTest.java @@ -40,8 +40,8 @@ import static org.junit.Assert.assertTrue; import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.clearInvocations; import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.verifyNoInteractions; import static org.mockito.Mockito.verifyNoMoreInteractions; -import static org.mockito.Mockito.verifyZeroInteractions; import static org.mockito.Mockito.when; /** @@ -115,7 +115,7 @@ public class InvokerPropertiesTest InvokerProperties facade = new InvokerProperties( null ); facade.configureInvocation( request, 0 ); - verifyZeroInteractions( request ); + verifyNoInteractions( request ); } @Test @@ -250,7 +250,7 @@ public class InvokerPropertiesTest { assertEquals( "The string 'xxxUnKnown' can not be converted to enumeration.", e.getMessage() ); } - verifyZeroInteractions( request ); + verifyNoInteractions( request ); }
