Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Sep 18, 2023
1 parent b71dbb7 commit 8720914
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Buffer> res = Mockito.mock(HttpResponse.class);
Future<HttpResponse<Buffer>> future = Future.failedFuture("test failure");
Mockito.when(req.send()).thenReturn(future);

Expand Down
7 changes: 2 additions & 5 deletions src/test/java/io/cryostat/rules/RuleProcessorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<ReplacementPolicy> replaceCaptor =
ArgumentCaptor.forClass(ReplacementPolicy.class);
Expand All @@ -625,7 +622,7 @@ void testSuccessfulRuleNonActivationWithCredentials() throws Exception {

ArgumentCaptor<Boolean> archiveOnStopCaptor = ArgumentCaptor.forClass(Boolean.class);

Mockito.verify(recordingTargetHelper, never())
Mockito.verify(recordingTargetHelper, Mockito.never())
.startRecording(
replaceCaptor.capture(),
connectionDescriptorCaptor.capture(),
Expand Down

0 comments on commit 8720914

Please sign in to comment.