Package no.shhsoft.k3aembedded
Class K3aTestUtils
java.lang.Object
no.shhsoft.k3aembedded.K3aTestUtils
-
Method Summary
Modifier and TypeMethodDescriptionadminProps(String bootstrapServers) Set up test properties for an admin client.adminProps(K3aEmbedded k3aEmbedded) Set up test properties for admin client.consumerProps(String group, boolean autoCommit, K3aEmbedded k3aEmbedded) Set up test properties for an<Integer, String>consumer.consumerProps(String bootstrapServers, String group, boolean autoCommit) Set up test properties for an<Integer, String>consumer.producerProps(String bootstrapServers) Set up test properties for an<Integer, String>producer.producerProps(K3aEmbedded k3aEmbedded) Set up test properties for an<Integer, String>producer.
-
Method Details
-
consumerProps
public static Map<String,Object> consumerProps(String group, boolean autoCommit, K3aEmbedded k3aEmbedded) Set up test properties for an<Integer, String>consumer.- Parameters:
group- the group id.autoCommit- the auto commit.k3aEmbedded- aK3aEmbeddedinstance.- Returns:
- the properties.
-
producerProps
Set up test properties for an<Integer, String>producer.- Parameters:
k3aEmbedded- aK3aEmbeddedinstance.- Returns:
- the properties.
-
adminProps
Set up test properties for admin client.- Parameters:
k3aEmbedded- aK3aEmbeddedinstance.- Returns:
- the properties.
-
consumerProps
public static Map<String,Object> consumerProps(String bootstrapServers, String group, boolean autoCommit) Set up test properties for an<Integer, String>consumer.- Parameters:
bootstrapServers- the bootstrapServers property.group- the group id.autoCommit- the auto commit.- Returns:
- the properties.
-
producerProps
Set up test properties for an<Integer, String>producer.- Parameters:
bootstrapServers- the bootstrapServers property.- Returns:
- the properties.
-
adminProps
Set up test properties for an admin client.- Parameters:
bootstrapServers- the bootstrapServers property.- Returns:
- the properties.
-