Skip to content

Commit

Permalink
Removed expand from test of getAllGroups
Browse files Browse the repository at this point in the history
  • Loading branch information
olabrustad committed Jun 28, 2024
1 parent 50fa767 commit e338dc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/no/fintlabs/AzureClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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")));
Expand Down

0 comments on commit e338dc8

Please sign in to comment.