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 TypeMethodDescriptionvoidpublish(byte[] message) Simulate the publishing of a raw message.voidpublish(byte[] message, akka.javasdk.Metadata metadata) Simulate the publishing of a raw message.voidpublish(EventingTestKit.Message<?> message) Simulate the publishing of a message.voidpublish(com.google.protobuf.ByteString message) Deprecated.Use publish with byte array parametervoidpublish(com.google.protobuf.ByteString message, akka.javasdk.Metadata metadata) Deprecated.Use publish with byte array parametervoidpublish(List<EventingTestKit.Message<?>> messages) Publish multiple messages.<T> voidSimulate the publishing of a message.voidpublishDelete(String subject) Publish a predefined delete message.
-
Method Details
-
publish
Deprecated.Use publish with byte array parameterSimulate the publishing of a raw message.- Parameters:
message- raw protobuf bytestring to be published
-
publish
Deprecated.Use publish with byte array parameterSimulate the publishing of a raw message.- Parameters:
message- raw protobuf bytestring to be publishedmetadata- associated with the message
-
publish
void publish(byte[] message) Simulate the publishing of a raw message.- Parameters:
message- raw byte array to be published
-
publish
void publish(byte[] message, akka.javasdk.Metadata metadata) Simulate the publishing of a raw message.- Parameters:
message- raw byte array 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
-