[java-idp-plugin-duo] branch dev/JDUO-71 updated: Update deprecated method

Phil Smart philip.smart at jisc.ac.uk
Mon Jul 3 13:33:14 UTC 2023


This is an automated email from the git hooks/post-receive script.

philsmart pushed a commit to branch dev/JDUO-71
in repository java-idp-plugin-duo.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-duo.git;a=commit;h=8175acd782566a68d6fcb7256a79b0035b5655f3

The following commit(s) were added to refs/heads/dev/JDUO-71 by this push:
     new 8175acd  Update deprecated method
8175acd is described below

commit 8175acd782566a68d6fcb7256a79b0035b5655f3
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Mon Jul 3 14:33:11 2023 +0100

    Update deprecated method
---
 .../idp/plugin/authn/duo/nimbus/impl/NimbusClientTest.java     | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/idp-duo-nimbus-client-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/nimbus/impl/NimbusClientTest.java b/idp-duo-nimbus-client-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/nimbus/impl/NimbusClientTest.java
index c177989..a24707e 100644
--- a/idp-duo-nimbus-client-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/nimbus/impl/NimbusClientTest.java
+++ b/idp-duo-nimbus-client-impl/src/test/java/net/shibboleth/idp/plugin/authn/duo/nimbus/impl/NimbusClientTest.java
@@ -200,7 +200,7 @@ public class NimbusClientTest {
 
         Mockito.when(httpResponse.getCode()).thenReturn(500);
         Mockito.when(httpResponse.getEntity()).thenReturn(new StringEntity(ID_TOKEN_REPONSE_NULL));
-        Mockito.when(httpClient.execute((HttpUriRequest) Mockito.any(), (HttpContext) Mockito.any()))
+        Mockito.when(httpClient.executeOpen(null, (HttpUriRequest) Mockito.any(), (HttpContext) Mockito.any()))
                 .thenReturn(httpResponse);
 
         // create new client with mock response
@@ -222,7 +222,7 @@ public class NimbusClientTest {
 
         Mockito.when(httpResponse.getCode()).thenReturn(500);
         Mockito.when(httpResponse.getEntity()).thenReturn(new StringEntity(HEALTH_CHECK_REPONSE));
-        Mockito.when(httpClient.execute((HttpUriRequest) Mockito.any(), (HttpContext) Mockito.any()))
+        Mockito.when(httpClient.executeOpen(null, (HttpUriRequest) Mockito.any(), (HttpContext) Mockito.any()))
                 .thenReturn(httpResponse);
         
      // create new client with mock response
@@ -246,7 +246,7 @@ public class NimbusClientTest {
 
         Mockito.when(httpResponse.getCode()).thenReturn(500);
         Mockito.when(httpResponse.getEntity()).thenReturn(new StringEntity(HEALTH_CHECK_REPONSE_MORE_FIELDS));
-        Mockito.when(httpClient.execute((HttpUriRequest) Mockito.any(), (HttpContext) Mockito.any()))
+        Mockito.when(httpClient.executeOpen(null, (HttpUriRequest) Mockito.any(), (HttpContext) Mockito.any()))
                 .thenReturn(httpResponse);
         
         // create new client with mock response
@@ -270,7 +270,7 @@ public class NimbusClientTest {
 
         Mockito.when(httpResponse.getCode()).thenReturn(500);
         Mockito.when(httpResponse.getEntity()).thenReturn(new StringEntity(HEALTH_CHECK_REPONSE_ERROR));
-        Mockito.when(httpClient.execute((HttpUriRequest) Mockito.any(), (HttpContext) Mockito.any()))
+        Mockito.when(httpClient.executeOpen(null, (HttpUriRequest) Mockito.any(), (HttpContext) Mockito.any()))
                 .thenReturn(httpResponse);
         
         // create new client with mock response
@@ -283,7 +283,7 @@ public class NimbusClientTest {
     @Test(expectedExceptions = DuoClientException.class)
     public void testHealthEndpointTimeout() throws Exception {
         final HttpClient httpClient = Mockito.mock(HttpClient.class);
-        Mockito.when(httpClient.execute((HttpUriRequest) Mockito.any(), 
+        Mockito.when(httpClient.executeOpen(null, (HttpUriRequest) Mockito.any(), 
                 (HttpContext) Mockito.any())).thenThrow(IOException.class);
         
         // create new client with mock response

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list