Skip to content

Commit

Permalink
Update CarmaCloudInstanceManagerTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
kruegersp authored Apr 11, 2024
1 parent 8878dc7 commit f635f97
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ public void testOnNewRegistration() {
assertTrue(manager.checkIfRegistered(carmacloudId));
// Ensure checkIfRegistered returns false for other Ids
assertFalse(manager.checkIfRegistered(carmacloudId + "something") );

// replace registered CARMA Cloud instance with mock instance
manager.getManagedInstances().put(carmacloudId, instance1);
}

@Test
public void testOnTimeStepUpdate() throws IOException {
// replace registered CARMA Cloud instance with mock instance
manager.getManagedInstances().put(carmacloudId, instance1);

TimeSyncMessage message = new TimeSyncMessage(999L, 11);
manager.onTimeStepUpdate(message);
// Verify that all instances sendTimeSyncMsgs was called.
Expand Down

0 comments on commit f635f97

Please sign in to comment.