Skip to content

Commit

Permalink
Add processInteraction unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
kruegersp authored May 2, 2024
1 parent de34327 commit 29f5695
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ public void testInitialize() throws InternalFederateException, IllegalValueExcep
ambassador.close();
}

// @Test
// public void testProcessInteraction() throws InternalFederateException {
// Interaction interactionMock = mock(Interaction.class);
// ambassador.processInteraction(interactionMock);
// verify(interactionMock).getTypeId();
// verify(interactionMock).getTime();
// }
@Test
public void testProcessInteraction() throws InternalFederateException {
Interaction interactionMock = mock(Interaction.class);
ambassador.processInteraction(interactionMock);
verify(interactionMock).getTypeId();
verify(interactionMock).getTime();
}

@Test
public void testProcessTimeAdvanceGrant() throws InternalFederateException, IllegalValueException, NoSuchFieldException, SecurityException
Expand Down

0 comments on commit 29f5695

Please sign in to comment.