T - the type of actor protocolpublic class TestActor<T> extends Object implements TestStateView
| Constructor and Description |
|---|
TestActor(Actor actor,
T protocol,
Address address)
Construct my default state.
|
| Modifier and Type | Method and Description |
|---|---|
T |
actor()
Answer my
actor inside as the T protocol. |
<O> O |
actorAs()
Answer my
actor inside as protocol O. |
Actor |
actorInside()
Answer my
actor inside. |
Address |
address()
Answer my
address, which is the Address of my actor inside. |
TestContext |
andNowCompleteWithHappenings(int times)
Answer my
context after resetting the expected completions/happenings. |
TestContext |
context()
Answer my
context. |
<V> V |
mustComplete()
Answer the
V typed value of my context when it is available. |
TestState |
viewTestState()
Answer the
TestState of my actor inside. |
public T actor()
actor inside as the T protocol.public <O> O actorAs()
actor inside as protocol O.O - the O protocol of my actor insidepublic Address address()
address, which is the Address of my actor inside.public Actor actorInside()
actor inside.public TestContext context()
context.public TestContext andNowCompleteWithHappenings(int times)
context after resetting the expected completions/happenings.times - the int number of expected completions/happeningspublic <V> V mustComplete()
V typed value of my context when it is available.
Block unless the value is immediately available.V - the value typepublic TestState viewTestState()
TestState of my actor inside.viewTestState in interface TestStateViewCopyright © 2021. All rights reserved.