Skip navigation links
A B C D E G H I M N O P Q R S T V W 

A

acked(Count) - Static method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Verifies that Bounded Context responded with a specified number of acknowledgements.
ackedWithErrors() - Static method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Verifies that a command or an event was handled responding with some error.
ackedWithErrors(Count) - Static method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Verifies that a command or an event was handled responding with specified number of errors.
ackedWithErrors(ErrorCriterion) - Static method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Verifies that a command or an event was handled responding with an error matching a provided ErrorCriterion.
ackedWithErrors(ErrorCriterion, Count) - Static method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Verifies that a command or an event was handled responding with an error matching a provided error criterion.
ackedWithoutErrors() - Static method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Verifies that the command handling did not respond with error.
ackedWithoutRejections() - Static method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Verifies that a command handling did not respond with any rejections.
ackedWithRejections() - Static method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Verifies that a command or an event was handled with a rejection.
ackedWithRejections(Class<? extends RejectionMessage>) - Static method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Verifies that a command or an event was handled responding with a rejection of the provided type.
ackedWithRejections(RejectionType) - Static method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Verifies that a command or an event was handled responding with a rejection of the provided type.
ackedWithRejections(Class<T>, RejectionCriterion<T>) - Static method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Verifies that a command or an event was handled responding with rejection matching the provided predicate.
ackedWithRejections(Count) - Static method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Verifies that a command or an event was handled responding with a rejection specified number of times.
ackedWithRejections(Class<? extends RejectionMessage>, Count) - Static method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Verifies that a command or an event was handled responding with a rejection of a provided type specified number of times.
ackedWithRejections(RejectionType, Count) - Static method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Verifies that a command or an event was handled responding with a rejection of a provided type specified number of times.
ackedWithRejections(Class<T>, Count, RejectionCriterion<T>) - Static method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Verifies that a command or an event was handled responding with a provided domain rejection specified number of times.
Acknowledgements - Class in io.spine.testing.client.blackbox
Contains the data on provided acknowledgements, allowing it to be queried about acks, errors, and rejections.
Acknowledgements(Iterable<Ack>) - Constructor for class io.spine.testing.client.blackbox.Acknowledgements
 
addRepeatedField(Descriptors.FieldDescriptor, Object) - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
and(VerifyAcknowledgements) - Method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Combines current verifier with a provided verifier, making them execute sequentially.

B

build() - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
buildPartial() - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 

C

clear() - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
clearField(Descriptors.FieldDescriptor) - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
clearId() - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
string id = 1;
clearOneof(Descriptors.OneofDescriptor) - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
clone() - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
CommandsProto - Class in io.spine.testing.client.command
 
containErrors() - Method in class io.spine.testing.client.blackbox.Acknowledgements
Verifies if there was at least one error during command handling.
containErrors(ErrorCriterion) - Method in class io.spine.testing.client.blackbox.Acknowledgements
Verifies if there was at least one error matching the passed criterion.
containRejection(Class<T>, RejectionCriterion<T>) - Method in class io.spine.testing.client.blackbox.Acknowledgements
Verifies if there is at least one rejection event which matches the passed criterion.
containRejections() - Method in class io.spine.testing.client.blackbox.Acknowledgements
Returns true if there were any rejections in the Bounded Context, false otherwise.
containRejections(RejectionType) - Method in class io.spine.testing.client.blackbox.Acknowledgements
Verifies if there was a rejection of the passed class.
count() - Method in class io.spine.testing.client.blackbox.Acknowledgements
Obtains the total number of acknowledgements observed.
Count - Class in io.spine.testing.client.blackbox
An integer Tiny Type representing a numeric value that can not be negative.
count(int) - Static method in class io.spine.testing.client.blackbox.Count
Count Count static factory creating an instance with the provided value.
countErrors() - Method in class io.spine.testing.client.blackbox.Acknowledgements
Obtains a total number of errors in the acknowledgements.
countErrors(ErrorCriterion) - Method in class io.spine.testing.client.blackbox.Acknowledgements
Count error matching the passed criterion.
countRejections() - Method in class io.spine.testing.client.blackbox.Acknowledgements
Obtains a total amount of rejections observed in Bounded Context.
countRejections(RejectionType) - Method in class io.spine.testing.client.blackbox.Acknowledgements
Obtains an amount of rejections of the provided type observed in the Bounded Context.
countRejections(Class<T>, RejectionCriterion<T>) - Method in class io.spine.testing.client.blackbox.Acknowledgements
Counts a number of rejections matching the passed criterion.
createCommand(CommandMessage, Timestamp) - Method in class io.spine.testing.client.TestActorRequestFactory
Creates new command with the passed timestamp.
createCommand(CommandMessage) - Method in class io.spine.testing.client.TestActorRequestFactory
 
createCommandContext() - Method in class io.spine.testing.client.TestActorRequestFactory

D

description() - Method in class io.spine.testing.client.blackbox.ErrorAttributeCriterion
 
description() - Method in interface io.spine.testing.client.blackbox.ErrorCriterion
 
description() - Method in interface io.spine.testing.client.blackbox.RejectionCriterion
Obtains a message specifying the reason the rejection did not match the predicate.

E

equals(Object) - Method in class io.spine.testing.client.command.TestCommandMessage
 
ErrorAttributeCriterion - Class in io.spine.testing.client.blackbox
A special error criterion that checks the errors attributes.
ErrorCriterion - Interface in io.spine.testing.client.blackbox
Specifies the rules a Spine errors must match.
errors() - Method in class io.spine.testing.client.blackbox.Acknowledgements
Obtains errors occurred during command handling.

G

generateCommand() - Method in class io.spine.testing.client.TestActorRequestFactory
Generates a test instance of a command with the message TestCommandMessage.
getDefaultInstance() - Static method in class io.spine.testing.client.command.TestCommandMessage
 
getDefaultInstanceForType() - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
getDefaultInstanceForType() - Method in class io.spine.testing.client.command.TestCommandMessage
 
getDescriptor() - Static method in class io.spine.testing.client.command.CommandsProto
 
getDescriptor() - Static method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
getDescriptor() - Static method in class io.spine.testing.client.command.TestCommandMessage
 
getDescriptorForType() - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
getId() - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
string id = 1;
getId() - Method in class io.spine.testing.client.command.TestCommandMessage
string id = 1;
getId() - Method in interface io.spine.testing.client.command.TestCommandMessageOrBuilder
string id = 1;
getIdBytes() - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
string id = 1;
getIdBytes() - Method in class io.spine.testing.client.command.TestCommandMessage
string id = 1;
getIdBytes() - Method in interface io.spine.testing.client.command.TestCommandMessageOrBuilder
string id = 1;
getParserForType() - Method in class io.spine.testing.client.command.TestCommandMessage
 
getSerializedSize() - Method in class io.spine.testing.client.command.TestCommandMessage
 
getUnknownFields() - Method in class io.spine.testing.client.command.TestCommandMessage
 

H

hashCode() - Method in class io.spine.testing.client.command.TestCommandMessage
 

I

ID_FIELD_NUMBER - Static variable in class io.spine.testing.client.command.TestCommandMessage
 
internalGetFieldAccessorTable() - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
internalGetFieldAccessorTable() - Method in class io.spine.testing.client.command.TestCommandMessage
 
io.spine.testing.client - package io.spine.testing.client
This package provides utilities for testing client-side code.
io.spine.testing.client.blackbox - package io.spine.testing.client.blackbox
This package provides test utilities for implementing black box testing.
io.spine.testing.client.command - package io.spine.testing.client.command
 
io.spine.testing.client.grpc - package io.spine.testing.client.grpc
This package provides a testing utility for testing Spine-based client applications that use gRPC for sending commands and querying the backend.
isInitialized() - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
isInitialized() - Method in class io.spine.testing.client.command.TestCommandMessage
 
isShutdown() - Method in class io.spine.testing.client.grpc.TestClient
Verifies if the client is shutdown.

M

matches(Error) - Method in class io.spine.testing.client.blackbox.ErrorAttributeCriterion
 
mergeFrom(Message) - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
mergeFrom(TestCommandMessage) - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
mergeFrom(CodedInputStream, ExtensionRegistryLite) - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
mergeUnknownFields(UnknownFieldSet) - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 

N

newBuilder() - Static method in class io.spine.testing.client.command.TestCommandMessage
 
newBuilder(TestCommandMessage) - Static method in class io.spine.testing.client.command.TestCommandMessage
 
newBuilderForType() - Method in class io.spine.testing.client.command.TestCommandMessage
 
newBuilderForType(GeneratedMessageV3.BuilderParent) - Method in class io.spine.testing.client.command.TestCommandMessage
 
newInstance(GeneratedMessageV3.UnusedPrivateParameter) - Method in class io.spine.testing.client.command.TestCommandMessage
 
newInstance(UserId, TenantId) - Static method in class io.spine.testing.client.TestActorRequestFactory
newInstance(Class<?>, TenantId) - Static method in class io.spine.testing.client.TestActorRequestFactory
none() - Static method in class io.spine.testing.client.blackbox.Count
A literate shortcut for count(0).

O

once() - Static method in class io.spine.testing.client.blackbox.Count
A literate shortcut for count(1).

P

parseDelimitedFrom(InputStream) - Static method in class io.spine.testing.client.command.TestCommandMessage
 
parseDelimitedFrom(InputStream, ExtensionRegistryLite) - Static method in class io.spine.testing.client.command.TestCommandMessage
 
parseFrom(ByteBuffer) - Static method in class io.spine.testing.client.command.TestCommandMessage
 
parseFrom(ByteBuffer, ExtensionRegistryLite) - Static method in class io.spine.testing.client.command.TestCommandMessage
 
parseFrom(ByteString) - Static method in class io.spine.testing.client.command.TestCommandMessage
 
parseFrom(ByteString, ExtensionRegistryLite) - Static method in class io.spine.testing.client.command.TestCommandMessage
 
parseFrom(byte[]) - Static method in class io.spine.testing.client.command.TestCommandMessage
 
parseFrom(byte[], ExtensionRegistryLite) - Static method in class io.spine.testing.client.command.TestCommandMessage
 
parseFrom(InputStream) - Static method in class io.spine.testing.client.command.TestCommandMessage
 
parseFrom(InputStream, ExtensionRegistryLite) - Static method in class io.spine.testing.client.command.TestCommandMessage
 
parseFrom(CodedInputStream) - Static method in class io.spine.testing.client.command.TestCommandMessage
 
parseFrom(CodedInputStream, ExtensionRegistryLite) - Static method in class io.spine.testing.client.command.TestCommandMessage
 
parser() - Static method in class io.spine.testing.client.command.TestCommandMessage
 
post(CommandMessage) - Method in class io.spine.testing.client.grpc.TestClient
Creates a command for the passed message and sends it to the server.

Q

queryAll(Class<? extends EntityState>) - Method in class io.spine.testing.client.grpc.TestClient
Queries all entities of provided type.

R

registerAllExtensions(ExtensionRegistryLite) - Static method in class io.spine.testing.client.command.CommandsProto
 
registerAllExtensions(ExtensionRegistry) - Static method in class io.spine.testing.client.command.CommandsProto
 
RejectionCriterion<T extends io.spine.base.RejectionMessage> - Interface in io.spine.testing.client.blackbox
Specifies the rules a rejection must match.

S

setField(Descriptors.FieldDescriptor, Object) - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
setId(String) - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
string id = 1;
setIdBytes(ByteString) - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
string id = 1;
setRepeatedField(Descriptors.FieldDescriptor, int, Object) - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
setUnknownFields(UnknownFieldSet) - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
shutdown() - Method in class io.spine.testing.client.grpc.TestClient
Shutdown the client waiting 5 seconds for preexisting calls to continue.

T

TestActorRequestFactory - Class in io.spine.testing.client
An ActorRequestFactory for running tests.
TestActorRequestFactory(UserId, ZoneId) - Constructor for class io.spine.testing.client.TestActorRequestFactory
 
TestActorRequestFactory(TenantId, UserId, ZoneOffset, ZoneId) - Constructor for class io.spine.testing.client.TestActorRequestFactory
 
TestActorRequestFactory(String, ZoneId) - Constructor for class io.spine.testing.client.TestActorRequestFactory
 
TestActorRequestFactory(Class<?>) - Constructor for class io.spine.testing.client.TestActorRequestFactory
 
TestActorRequestFactory(UserId) - Constructor for class io.spine.testing.client.TestActorRequestFactory
 
TestActorRequestFactory(UserId, TenantId) - Constructor for class io.spine.testing.client.TestActorRequestFactory
 
TestActorRequestFactory(Class<?>, TenantId) - Constructor for class io.spine.testing.client.TestActorRequestFactory
 
TestClient - Class in io.spine.testing.client.grpc
TestClient connects to the server using gRPC and allows sending commands and querying its entities.
TestClient(UserId, String, int) - Constructor for class io.spine.testing.client.grpc.TestClient
Construct the client connecting to server at host:port.
TestCommandMessage - Class in io.spine.testing.client.command
A command message used for generating test commands in `TestActorRequestFactory`.
TestCommandMessage.Builder - Class in io.spine.testing.client.command
A command message used for generating test commands in `TestActorRequestFactory`.
TestCommandMessageOrBuilder - Interface in io.spine.testing.client.command
 
thrice() - Static method in class io.spine.testing.client.blackbox.Count
A literate shortcut for count(3).
toBuilder() - Method in class io.spine.testing.client.command.TestCommandMessage
 
toString() - Method in class io.spine.testing.client.blackbox.Count
 
twice() - Static method in class io.spine.testing.client.blackbox.Count
A literate shortcut for count(2).

V

validate() - Method in class io.spine.testing.client.command.TestCommandMessage
 
value() - Method in class io.spine.testing.client.blackbox.Count
Obtains an integer value of the current count.
value(Value) - Method in class io.spine.testing.client.blackbox.ErrorAttributeCriterion
Verifies the value of the attribute under current name.
vBuild() - Method in class io.spine.testing.client.command.TestCommandMessage.Builder
 
verify(Acknowledgements) - Method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Executes the acknowledgement verifier throwing an assertion error if the data does not match the rule..
VerifyAcknowledgements - Class in io.spine.testing.client.blackbox
An abstract verifier of Bounded Context acknowledgements.
VerifyAcknowledgements() - Constructor for class io.spine.testing.client.blackbox.VerifyAcknowledgements
 

W

withAttribute(String) - Static method in interface io.spine.testing.client.blackbox.ErrorCriterion
A static factory method for creating an error attribute criterion.
withCode(int) - Static method in interface io.spine.testing.client.blackbox.ErrorCriterion
Verifies that the errors code matches the provided one.
withErrors() - Method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Creates a new verifier adding a check to contain at least one error.
withErrors(Count) - Method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Creates a new verifier adding a check to contain specified number of errors.
withErrors(ErrorCriterion) - Method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Creates a new verifier adding a check to contain an error that matches the criterion.
withErrors(ErrorCriterion, Count) - Method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Creates a new verifier adding a check to contain an error that matches the criterion.
withMessage(String) - Static method in interface io.spine.testing.client.blackbox.ErrorCriterion
Verifies that the errors message matches the provided one.
withoutAttribute(String) - Static method in interface io.spine.testing.client.blackbox.ErrorCriterion
Verifies that the error does not contain an attribute with a provided name.
withoutErrors() - Method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Creates a new verifier adding a check to not contain any errors.
withoutErrorsOrRejections() - Method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Creates a new verifier adding a check to not contain any errors or rejections.
withoutRejections() - Method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Creates a new verifier adding a check to not contain any rejections.
withRejections() - Method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Creates a new verifier adding a check to contain some rejection.
withRejections(Class<? extends RejectionMessage>) - Method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Creates a new verifier adding a check to contain a rejection of a type specified by class.
withRejections(RejectionType) - Method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Creates a new verifier adding a check to contain a rejection of the specified type.
withRejections(Class<? extends RejectionMessage>, Count) - Method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Creates a new verifier adding a check to contain a rejection of the passed type specified number of times.
withRejections(RejectionType, Count) - Method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Creates a new verifier adding a check to contain a rejection of the passed type specified number of times.
withRejections(Class<T>, RejectionCriterion<T>) - Method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Creates a new verifier adding a check to contain a provided domain rejection.
withRejections(Class<T>, Count, RejectionCriterion<T>) - Method in class io.spine.testing.client.blackbox.VerifyAcknowledgements
Creates a new verifier adding a check to contain a provided domain rejection.
withType(String) - Static method in interface io.spine.testing.client.blackbox.ErrorCriterion
Verifies that the errors type matches the provided one.
writeTo(CodedOutputStream) - Method in class io.spine.testing.client.command.TestCommandMessage
 
A B C D E G H I M N O P Q R S T V W 
Skip navigation links