Skip to content

Commit

Permalink
Fixing test mock
Browse files Browse the repository at this point in the history
  • Loading branch information
waschndolos committed Nov 26, 2023
1 parent 09df7db commit 028ee36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public void shouldTakeConfiguredValueIfEnvironmentVariableIsFaulty() throws Exce

@Test
public void shouldTakeConfiguredValueIfItIsConfigured() {
Mockito.doCallRealMethod().when(configuration).setCollectDiskUsage(any());
Mockito.doCallRealMethod().when(configuration).setCollectDiskUsage(anyBoolean());
Mockito.doCallRealMethod().when(configuration).getCollectDiskUsage();

// simulate someone configured it over the UI
Expand Down

0 comments on commit 028ee36

Please sign in to comment.