From 028ee36288ee7513cbed0ae63af4d043a9f5c634 Mon Sep 17 00:00:00 2001 From: waschndolos Date: Sun, 26 Nov 2023 11:18:08 +0100 Subject: [PATCH] Fixing test mock --- .../plugins/prometheus/config/PrometheusConfigurationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/jenkinsci/plugins/prometheus/config/PrometheusConfigurationTest.java b/src/test/java/org/jenkinsci/plugins/prometheus/config/PrometheusConfigurationTest.java index 8b9ad18be..aa5048050 100644 --- a/src/test/java/org/jenkinsci/plugins/prometheus/config/PrometheusConfigurationTest.java +++ b/src/test/java/org/jenkinsci/plugins/prometheus/config/PrometheusConfigurationTest.java @@ -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