org.cocome.tradingsystem.systests.interfaces
Interface IUpdateReceiver
- All Known Subinterfaces:
- ICashBox, ILightsDisplay, IPrinter, IUserDisplay
public interface IUpdateReceiver
Interface for devices which receive updates from the system. This interface
is crucial, as the trading system is asynchronous. So we can not test for a
reaction immediately, but rather have to way for some components to update
their state. However we limit the time to wait for this update, so we avoid
the test to lock up in case of an error and furthermore to test reaction
times (if specified).
- Version:
- $Rev: 47 $
- Author:
- Benjamin Hummel, $Author: hummel $
Method Summary |
void |
waitForUpdate(int maxMilliseconds)
Wait until the device gets updated (e.g., via a message). |
waitForUpdate
void waitForUpdate(int maxMilliseconds)
throws java.util.concurrent.TimeoutException
- Wait until the device gets updated (e.g., via a message). If no update
occurs during the requested period throw an exception.
- Parameters:
maxMilliseconds
- the maximal number of millisecond to wait for an update.
- Throws:
java.util.concurrent.TimeoutException
- if no update occurred during the specified duration.
CoCoME System Tests - 0.1