public class TestActorRequestFactory
extends io.spine.client.ActorRequestFactory
ActorRequestFactory
for running tests.Constructor and Description |
---|
TestActorRequestFactory(java.lang.Class<?> testClass) |
TestActorRequestFactory(java.lang.Class<?> testClass,
io.spine.core.TenantId tenantId) |
TestActorRequestFactory(java.lang.String actor,
io.spine.time.ZoneId zoneId) |
TestActorRequestFactory(@Nullable io.spine.core.TenantId tenantId,
io.spine.core.UserId actor,
io.spine.time.ZoneId zoneId) |
TestActorRequestFactory(io.spine.core.UserId actor) |
TestActorRequestFactory(io.spine.core.UserId actor,
io.spine.core.TenantId tenantId) |
TestActorRequestFactory(io.spine.core.UserId actor,
io.spine.time.ZoneId zoneId) |
Modifier and Type | Method and Description |
---|---|
io.spine.core.Command |
createCommand(io.spine.base.CommandMessage message) |
io.spine.core.Command |
createCommand(io.spine.base.CommandMessage message,
com.google.protobuf.Timestamp timestamp)
Creates new command with the passed timestamp.
|
io.spine.core.CommandContext |
createCommandContext() |
io.spine.core.Command |
generateCommand()
Generates a test instance of a command with the message
TestCommandMessage . |
static io.spine.time.ZoneOffset |
toOffset(io.spine.time.ZoneId zoneId)
Obtains the current offset for the passed time zone.
|
public TestActorRequestFactory(io.spine.core.UserId actor, io.spine.time.ZoneId zoneId)
public TestActorRequestFactory(@Nullable io.spine.core.TenantId tenantId, io.spine.core.UserId actor, io.spine.time.ZoneId zoneId)
public TestActorRequestFactory(java.lang.String actor, io.spine.time.ZoneId zoneId)
public TestActorRequestFactory(java.lang.Class<?> testClass)
public TestActorRequestFactory(io.spine.core.UserId actor)
public TestActorRequestFactory(io.spine.core.UserId actor, io.spine.core.TenantId tenantId)
public TestActorRequestFactory(java.lang.Class<?> testClass, io.spine.core.TenantId tenantId)
public io.spine.core.Command createCommand(io.spine.base.CommandMessage message, com.google.protobuf.Timestamp timestamp)
public io.spine.core.Command createCommand(io.spine.base.CommandMessage message)
public io.spine.core.Command generateCommand()
TestCommandMessage
.public io.spine.core.CommandContext createCommandContext()
Overrides to open access to creating command contexts in tests.
createCommandContext
in class io.spine.client.ActorRequestFactory
public static io.spine.time.ZoneOffset toOffset(io.spine.time.ZoneId zoneId)