Skip to content

Commit

Permalink
fix(test): updates a couple tests to disregard list order
Browse files Browse the repository at this point in the history
  • Loading branch information
nmbryant committed Nov 5, 2024
1 parent 00a2751 commit 819e9a3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,11 @@ private static EntityClient initMockEntityClient(
Mockito.when(
client.searchAcrossEntities(
any(),
Mockito.eq(entityTypes),
Mockito.argThat(
argument ->
argument != null
&& argument.containsAll(entityTypes)
&& entityTypes.containsAll(argument)),
Mockito.eq(query),
Mockito.eq(filter),
Mockito.eq(start),
Expand All @@ -409,7 +413,11 @@ private static void verifyMockEntityClient(
Mockito.verify(mockClient, Mockito.times(1))
.searchAcrossEntities(
any(),
Mockito.eq(entityTypes),
Mockito.argThat(
argument ->
argument != null
&& argument.containsAll(entityTypes)
&& entityTypes.containsAll(argument)),
Mockito.eq(query),
Mockito.eq(filter),
Mockito.eq(start),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,11 @@ private static EntityClient initMockEntityClient(
Mockito.when(
client.searchAcrossEntities(
any(),
Mockito.eq(entityTypes),
Mockito.argThat(
argument ->
argument != null
&& argument.containsAll(entityTypes)
&& entityTypes.containsAll(argument)),
Mockito.eq(query),
Mockito.eq(filter),
Mockito.eq(start),
Expand All @@ -483,7 +487,11 @@ private static void verifyMockEntityClient(
Mockito.verify(mockClient, Mockito.times(1))
.searchAcrossEntities(
any(),
Mockito.eq(entityTypes),
Mockito.argThat(
argument ->
argument != null
&& argument.containsAll(entityTypes)
&& entityTypes.containsAll(argument)),
Mockito.eq(query),
Mockito.eq(filter),
Mockito.eq(start),
Expand Down

0 comments on commit 819e9a3

Please sign in to comment.