Class K3aTestUtils

java.lang.Object
no.shhsoft.k3aembedded.K3aTestUtils

public final class K3aTestUtils extends Object
  • 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 - a K3aEmbedded instance.
      Returns:
      the properties.
    • producerProps

      public static Map<String,Object> producerProps(K3aEmbedded k3aEmbedded)
      Set up test properties for an <Integer, String> producer.
      Parameters:
      k3aEmbedded - a K3aEmbedded instance.
      Returns:
      the properties.
    • adminProps

      public static Map<String,Object> adminProps(K3aEmbedded k3aEmbedded)
      Set up test properties for admin client.
      Parameters:
      k3aEmbedded - a K3aEmbedded instance.
      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

      public static Map<String,Object> producerProps(String bootstrapServers)
      Set up test properties for an <Integer, String> producer.
      Parameters:
      bootstrapServers - the bootstrapServers property.
      Returns:
      the properties.
    • adminProps

      public static Map<String,Object> adminProps(String bootstrapServers)
      Set up test properties for an admin client.
      Parameters:
      bootstrapServers - the bootstrapServers property.
      Returns:
      the properties.