Skip to content

Commit

Permalink
Correctly mock new 3 param get method
Browse files Browse the repository at this point in the history
Signed-off-by: owenhalpert <[email protected]>
  • Loading branch information
owenhalpert committed Jan 24, 2025
1 parent 5eb55ed commit 55280c5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ public static void setUpClass() throws Exception {
final NativeMemoryCacheManager nativeMemoryCacheManager = mock(NativeMemoryCacheManager.class);
final NativeMemoryAllocation nativeMemoryAllocation = mock(NativeMemoryAllocation.class);
when(nativeMemoryCacheManager.get(any(), anyBoolean())).thenReturn(nativeMemoryAllocation);
when(nativeMemoryCacheManager.get(any(), anyBoolean(), anyBoolean())).thenReturn(nativeMemoryAllocation);

nativeMemoryCacheManagerMockedStatic.when(NativeMemoryCacheManager::getInstance).thenReturn(nativeMemoryCacheManager);

Expand Down

0 comments on commit 55280c5

Please sign in to comment.