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 29f5695 commit a285292
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,14 @@ public void testInitialize() throws InternalFederateException, IllegalValueExcep

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

0 comments on commit a285292

Please sign in to comment.