From 872091455c414170cb7551379e135e0e3e58f337 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Fri, 15 Sep 2023 10:35:14 -0400 Subject: [PATCH] cleanup --- .../java/io/cryostat/discovery/DiscoveryStorageTest.java | 1 - src/test/java/io/cryostat/rules/RuleProcessorTest.java | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/test/java/io/cryostat/discovery/DiscoveryStorageTest.java b/src/test/java/io/cryostat/discovery/DiscoveryStorageTest.java index b4d4af25c6..d8a6519f74 100644 --- a/src/test/java/io/cryostat/discovery/DiscoveryStorageTest.java +++ b/src/test/java/io/cryostat/discovery/DiscoveryStorageTest.java @@ -235,7 +235,6 @@ void removesPluginsIfCallbackFails() throws Exception { Mockito.when(req.timeout(Mockito.anyLong())).thenReturn(req); Mockito.when(req.followRedirects(Mockito.anyBoolean())).thenReturn(req); - HttpResponse res = Mockito.mock(HttpResponse.class); Future> future = Future.failedFuture("test failure"); Mockito.when(req.send()).thenReturn(future); diff --git a/src/test/java/io/cryostat/rules/RuleProcessorTest.java b/src/test/java/io/cryostat/rules/RuleProcessorTest.java index bbe935d4e3..bcdc5c6a80 100644 --- a/src/test/java/io/cryostat/rules/RuleProcessorTest.java +++ b/src/test/java/io/cryostat/rules/RuleProcessorTest.java @@ -15,9 +15,6 @@ */ package io.cryostat.rules; -import static org.junit.jupiter.api.Assertions.*; -import static org.mockito.Mockito.*; - import java.net.URI; import java.util.Map; import java.util.Optional; @@ -605,7 +602,7 @@ void testSuccessfulRuleNonActivationWithCredentials() throws Exception { processor.accept(tde); - Mockito.verify(recordingOptionsBuilder, never()).name("auto_Test_Rule"); + Mockito.verify(recordingOptionsBuilder, Mockito.never()).name("auto_Test_Rule"); ArgumentCaptor replaceCaptor = ArgumentCaptor.forClass(ReplacementPolicy.class); @@ -625,7 +622,7 @@ void testSuccessfulRuleNonActivationWithCredentials() throws Exception { ArgumentCaptor archiveOnStopCaptor = ArgumentCaptor.forClass(Boolean.class); - Mockito.verify(recordingTargetHelper, never()) + Mockito.verify(recordingTargetHelper, Mockito.never()) .startRecording( replaceCaptor.capture(), connectionDescriptorCaptor.capture(),