From e338dc8e050badc608645acba1b27cef63de1386 Mon Sep 17 00:00:00 2001 From: Ola Brustad Date: Fri, 28 Jun 2024 11:28:24 +0200 Subject: [PATCH] Removed expand from test of getAllGroups --- src/test/java/no/fintlabs/AzureClientTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/no/fintlabs/AzureClientTest.java b/src/test/java/no/fintlabs/AzureClientTest.java index 5265d85..6344e2e 100644 --- a/src/test/java/no/fintlabs/AzureClientTest.java +++ b/src/test/java/no/fintlabs/AzureClientTest.java @@ -426,7 +426,7 @@ public void makeSureGetNextPageIsCalledAsExpected() { when(graphServiceClient.groups()).thenReturn(groupCollectionRequestBuilder); when(groupCollectionRequestBuilder.buildRequest()).thenReturn(groupCollectionRequest); when(groupCollectionRequest.select(anyString())).thenReturn(groupCollectionRequest); - when(groupCollectionRequest.expand(anyString())).thenReturn(groupCollectionRequest); + //when(groupCollectionRequest.expand(anyString())).thenReturn(groupCollectionRequest); //when(groupCollectionRequest.filter(anyString())).thenReturn(groupCollectionRequest); when(groupCollectionRequest.get()).thenReturn(groupCollectionPage); @@ -449,7 +449,7 @@ public void makeSureTrownErrorIsSwallowedAndNotThrown() { when(graphServiceClient.groups()).thenReturn(groupCollectionRequestBuilder); when(groupCollectionRequestBuilder.buildRequest()).thenReturn(groupCollectionRequest); when(groupCollectionRequest.select(anyString())).thenReturn(groupCollectionRequest); - when(groupCollectionRequest.expand(anyString())).thenReturn(groupCollectionRequest); + //when(groupCollectionRequest.expand(anyString())).thenReturn(groupCollectionRequest); //when(groupCollectionRequest.filter(anyString())).thenReturn(groupCollectionRequest); when(groupCollectionRequest.get()).thenThrow(ClientException.class); @@ -466,7 +466,7 @@ public void shouldHandleTimeoutException() { //when(groupCollectionRequestBuilder.buildRequest(any(LinkedList.class))).thenReturn(groupCollectionRequest); when(groupCollectionRequestBuilder.buildRequest()).thenReturn(groupCollectionRequest); when(groupCollectionRequest.select(anyString())).thenReturn(groupCollectionRequest); - when(groupCollectionRequest.expand(anyString())).thenReturn(groupCollectionRequest); + // when(groupCollectionRequest.expand(anyString())).thenReturn(groupCollectionRequest); //when(groupCollectionRequest.filter(anyString())).thenReturn(groupCollectionRequest); when(groupCollectionRequest.get()).thenThrow(new ClientException("Timeout", new InterruptedIOException("timeout")));