You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2020/04/16 15:45:54 UTC

[cxf] 02/02: Updating Mockito and fixing deprecated method call

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

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

commit e6ca654a67a3f4449fa9eed492766bdbce485e85
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Thu Apr 16 16:45:11 2020 +0100

    Updating Mockito and fixing deprecated method call
---
 parent/pom.xml                                                 |  2 +-
 .../cxf/systest/jaxws/metrics/JAXWSClientMetricsTest.java      | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/parent/pom.xml b/parent/pom.xml
index c731151..46042ce 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -165,7 +165,7 @@
         <cxf.microprofile.rest.client.version>1.4.1</cxf.microprofile.rest.client.version>
         <cxf.microprofile.openapi.version>1.1.2</cxf.microprofile.openapi.version>        
         <cxf.mina.version>2.0.21</cxf.mina.version>
-        <cxf.mockito.version>3.1.0</cxf.mockito.version>
+        <cxf.mockito.version>3.3.3</cxf.mockito.version>
         <cxf.msv.version>2013.6.1</cxf.msv.version>
         <cxf.neethi.version>3.1.1</cxf.neethi.version>
         <cxf.netty.version.range>[4,5)</cxf.netty.version.range>
diff --git a/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/metrics/JAXWSClientMetricsTest.java b/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/metrics/JAXWSClientMetricsTest.java
index 4e7bb64..8ff0260 100644
--- a/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/metrics/JAXWSClientMetricsTest.java
+++ b/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/metrics/JAXWSClientMetricsTest.java
@@ -94,7 +94,7 @@ public class JAXWSClientMetricsTest extends AbstractCXFSpringTest {
             Mockito.verify(operationContext, times(1)).stop(anyLong(), anyLong(), anyLong(), any(Exchange.class));
             Mockito.verify(endpointContext, times(1)).start(any(Exchange.class));
             Mockito.verify(endpointContext, times(1)).stop(anyLong(), anyLong(), anyLong(), any(Exchange.class));
-            Mockito.verifyZeroInteractions(resourceContext);
+            Mockito.verifyNoInteractions(resourceContext);
         }
     }
    
@@ -114,7 +114,7 @@ public class JAXWSClientMetricsTest extends AbstractCXFSpringTest {
             Mockito.verify(operationContext, times(1)).stop(anyLong(), anyLong(), anyLong(), any(Exchange.class));
             Mockito.verify(endpointContext, times(1)).start(any(Exchange.class));
             Mockito.verify(endpointContext, times(1)).stop(anyLong(), anyLong(), anyLong(), any(Exchange.class));
-            Mockito.verifyZeroInteractions(resourceContext);
+            Mockito.verifyNoInteractions(resourceContext);
         }
     }
 
@@ -130,9 +130,9 @@ public class JAXWSClientMetricsTest extends AbstractCXFSpringTest {
             expectedException.expect(UncheckedException.class);
             client.invoke("getBooks");
         } finally {
-            Mockito.verifyZeroInteractions(endpointContext);
-            Mockito.verifyZeroInteractions(operationContext);
-            Mockito.verifyZeroInteractions(resourceContext);
+            Mockito.verifyNoInteractions(endpointContext);
+            Mockito.verifyNoInteractions(operationContext);
+            Mockito.verifyNoInteractions(resourceContext);
         }
     }