public class ActorBaseTest extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ActorBaseTest.Exceptional |
| Modifier and Type | Field and Description |
|---|---|
protected List<FakeClient> |
clients |
protected FakeClock |
clock |
protected String |
clusterName |
protected static ExecutorService |
commonPool |
org.junit.rules.TestRule |
dumpLogs |
protected ConcurrentHashMap<Object,Object> |
fakeDatabase |
protected FakeSync |
fakeSync |
protected org.slf4j.Logger |
logger |
protected TestLogger |
loggerExtension |
protected List<ServerPeer> |
serversConnections |
protected org.glassfish.hk2.api.ServiceLocator |
serviceLocator |
protected List<Stage> |
stages |
protected org.junit.runner.Description |
testDescription |
| Constructor and Description |
|---|
ActorBaseTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
protected void |
clearMessages() |
Stage |
createClient() |
ClientPeer |
createRemoteClient(Stage stage) |
Stage |
createStage() |
protected void |
dumpMessages() |
protected void |
eventually(long timeoutMillis,
Runnable runnable) |
protected void |
eventually(Runnable runnable) |
protected void |
eventuallyTrue(Callable<Boolean> callable) |
protected void |
eventuallyTrue(long timeoutMillis,
Callable<Boolean> callable) |
Throwable |
expectException(ActorBaseTest.Exceptional callable) |
protected ExecutionObjectCloner |
getExecutionObjectCloner() |
protected void |
installExtensions(Stage stage) |
protected boolean |
isIdle(Stage stage)
Checks if the that stages' execution is done running tasks
|
void |
tearDown() |
protected void |
waitFor(java.util.function.Supplier<Boolean> condition)
Spins waiting for a given condition to be true.
|
protected TestLogger loggerExtension
protected org.slf4j.Logger logger
protected String clusterName
protected FakeClock clock
protected ConcurrentHashMap<Object,Object> fakeDatabase
protected List<FakeClient> clients
protected List<ServerPeer> serversConnections
protected org.junit.runner.Description testDescription
protected org.glassfish.hk2.api.ServiceLocator serviceLocator
protected static final ExecutorService commonPool
protected FakeSync fakeSync
public org.junit.rules.TestRule dumpLogs
public void after()
protected void clearMessages()
protected void dumpMessages()
public ClientPeer createRemoteClient(Stage stage)
public Stage createClient()
public Stage createStage()
protected void installExtensions(Stage stage)
protected ExecutionObjectCloner getExecutionObjectCloner()
public Throwable expectException(ActorBaseTest.Exceptional callable)
protected void waitFor(java.util.function.Supplier<Boolean> condition)
condition - a function that must eventually return trueprotected boolean isIdle(Stage stage)
protected void eventually(Runnable runnable)
protected void eventually(long timeoutMillis,
Runnable runnable)
public void tearDown()
Copyright © 2016 Electronic Arts Inc. All rights reserved.