Skip to content

Commit

Permalink
Update RemoteSetupTest.java, adding eq() function from mockito (#8561)
Browse files Browse the repository at this point in the history
* Update RemoteSetupTest.java, adding eq() function from mockito to not compare a raw string

* Check style order of import correct
  • Loading branch information
JoaoHenrique12 authored Mar 11, 2022
1 parent 89d1047 commit 5149ee1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/org/jabref/logic/remote/RemoteSetupTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assumptions.assumeFalse;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.eq;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
Expand Down Expand Up @@ -94,7 +95,7 @@ void testPortAlreadyInUse() throws IOException {
assertFalse(server.isOpen());
server.openAndStart(messageHandler, port, preferencesService);
assertFalse(server.isOpen());
verify(messageHandler, never()).handleCommandLineArguments(any(), preferencesService);
verify(messageHandler, never()).handleCommandLineArguments(any(), eq(preferencesService));
}
}
}
Expand Down

0 comments on commit 5149ee1

Please sign in to comment.