public class WSSimulationContext
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
id
identification for this simulation
|
| Constructor and Description |
|---|
WSSimulationContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
blockUntilCalled()
Blocks the current thread until this simulation is called.
|
void |
blockUntilCalled(int timeout,
java.util.concurrent.TimeUnit timeUnit)
Blocks the current thread until this simulation is called.
|
int |
callCount()
The number of timesk this simulation has been called.
|
java.lang.String |
lastMessage()
Last message to reach the simulation
|
java.util.List<java.lang.String> |
messages()
All received messages to reach the simulation
|
void |
simulationInvoked(java.lang.String request)
Holds the request just received for this simulation
|
public void simulationInvoked(java.lang.String request)
request - - the requestpublic int callCount()
public java.lang.String lastMessage()
public java.util.List<java.lang.String> messages()
public void blockUntilCalled()
public void blockUntilCalled(int timeout,
java.util.concurrent.TimeUnit timeUnit)
timeout - the timeout lengthtimeUnit - the unit of time to lock for