Skip to content

Commit

Permalink
Remove redundant eq operators.
Browse files Browse the repository at this point in the history
  • Loading branch information
kruegersp authored Apr 24, 2024
1 parent 79779d8 commit dcf62e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void setUp() throws IOException, NoSuchFieldException, InternalFederateEx
public void testInitialize() throws InternalFederateException, IllegalValueException {
// Test initialize method
ambassador.initialize(0, 100 * TIME.SECOND);
verify(rtiMock, times(1)).requestAdvanceTime(eq(0L), eq(0L), eq((byte) 1));
verify(rtiMock, times(1)).requestAdvanceTime(0L, 0L, ((byte) 1));
// cleanup threads and sockets
ambassador.close();
}
Expand All @@ -128,6 +128,6 @@ public void testProcessTimeAdvanceGrant() throws InternalFederateException, Ille
ambassador.processTimeAdvanceGrant(10);
// Verify received messages were attempted to be pulled from CARMA Cloud Registration Receiver mock
verify(receiverMock, times(1)).getReceivedMessages();
verify(rtiMock, times(1)).requestAdvanceTime(eq(100000000L), eq(0L), eq((byte) 2));
verify(rtiMock, times(1)).requestAdvanceTime(100000000L, 0L, ((byte) 2));
}
}

0 comments on commit dcf62e2

Please sign in to comment.