This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bval.git


The following commit(s) were added to refs/heads/master by this push:
     new 901c849  new mockito
901c849 is described below

commit 901c849ab0c0eacf76807bc9b033027ebd70b786
Author: Thomas Andraschko <[email protected]>
AuthorDate: Thu Mar 2 11:16:22 2023 +0100

    new mockito
---
 .../test/java/org/apache/bval/jsr/DefaultMessageInterpolatorTest.java   | 2 +-
 pom.xml                                                                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/bval-jsr/src/test/java/org/apache/bval/jsr/DefaultMessageInterpolatorTest.java
 
b/bval-jsr/src/test/java/org/apache/bval/jsr/DefaultMessageInterpolatorTest.java
index bd8e744..651a517 100644
--- 
a/bval-jsr/src/test/java/org/apache/bval/jsr/DefaultMessageInterpolatorTest.java
+++ 
b/bval-jsr/src/test/java/org/apache/bval/jsr/DefaultMessageInterpolatorTest.java
@@ -315,7 +315,7 @@ public class DefaultMessageInterpolatorTest {
     private ApacheMessageContext context(Object validatedValue, 
Supplier<ConstraintDescriptor<?>> descriptor) {
         final ApacheMessageContext result = 
Mockito.mock(ApacheMessageContext.class);
         when(result.unwrap(any(Class.class)))
-            .thenAnswer(invocation -> invocation.getArgumentAt(0, 
Class.class).cast(result));
+            .thenAnswer(invocation -> invocation.getArgument(0, 
Class.class).cast(result));
         when(result.getValidatedValue()).thenReturn(validatedValue);
         when(result.getConstraintDescriptor()).thenAnswer(invocation -> 
descriptor.get());
         return result;
diff --git a/pom.xml b/pom.xml
index 0a5be04..f9302d9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -347,7 +347,7 @@
             <dependency>
                 <groupId>org.mockito</groupId>
                 <artifactId>mockito-core</artifactId>
-                <version>1.10.19</version>
+                <version>5.1.1</version>
             </dependency>
             <dependency>
                 <groupId>org.apache.commons</groupId>

Reply via email to