Package akka.javasdk.testkit
Interface EventingTestKit.IncomingMessages
- Enclosing interface:
EventingTestKit
public static interface EventingTestKit.IncomingMessages
Allows to simulate publishing messages for the purposes of testing incoming message flow.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
publish
(EventingTestKit.Message<?> message) Simulate the publishing of a message.void
publish
(com.google.protobuf.ByteString message) Simulate the publishing of a raw message.void
publish
(com.google.protobuf.ByteString message, akka.javasdk.Metadata metadata) Simulate the publishing of a raw message.void
publish
(List<EventingTestKit.Message<?>> messages) Publish multiple messages.<T> void
Simulate the publishing of a message.void
publishDelete
(String subject) Publish a predefined delete message.
-
Method Details
-
publish
void publish(com.google.protobuf.ByteString message) Simulate the publishing of a raw message.- Parameters:
message
- raw bytestring to be published
-
publish
void publish(com.google.protobuf.ByteString message, akka.javasdk.Metadata metadata) Simulate the publishing of a raw message.- Parameters:
message
- raw bytestring to be publishedmetadata
- associated with the message
-
publish
Simulate the publishing of a message.- Parameters:
message
- to be published
-
publish
Simulate the publishing of a message.- Type Parameters:
T
-- Parameters:
message
- to be publishedsubject
- to identify the entity
-
publish
Publish multiple messages.- Parameters:
messages
- to be published
-
publishDelete
Publish a predefined delete message. Supported only in case of KeyValueEntity incoming message flow.- Parameters:
subject
- to identify the entity
-