Skip to content

Commit

Permalink
Update CarmaCloudMessageAmbassadorTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
kruegersp authored May 2, 2024
1 parent a285292 commit 4dd0f33
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,8 @@ public void testInitialize() throws InternalFederateException, IllegalValueExcep

@Test
public void testProcessInteraction() throws InternalFederateException {
Interaction interactionMock = new Interaction(13L, 999) // anonymous inner class
{
@Override
public String getTypeId()
{
return "testProcessInteraction";
}
};
Interaction interactionMock = mock(Interaction.class);
when(receiverMock.getTypeId()).thenReturn("testProcessInteraction");
ambassador.processInteraction(interactionMock);
verify(interactionMock).getTypeId();
verify(interactionMock).getTime();
Expand Down

0 comments on commit 4dd0f33

Please sign in to comment.