Skip to content

Commit

Permalink
Update CarmaCloudMessageAmbassadorTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
kruegersp authored Apr 19, 2024
1 parent 8cd7f90 commit 667dec1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ public void testInitialize() throws InternalFederateException, IllegalValueExcep
public void testProcessTimeAdvanceGrant() throws InternalFederateException, IllegalValueException, NoSuchFieldException, SecurityException
{
//Test processTimeAdvanceGrant for CARMA Cloud Registration
ambassador.processTimeAdvanceGrant(1000);
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(1000L), eq(0L), eq((byte) 2));
verify(rtiMock, times(1)).requestAdvanceTime(eq(1000000L), eq(0L), eq((byte) 2));
}
}

0 comments on commit 667dec1

Please sign in to comment.