public final class TestUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TOPIC |
Modifier and Type | Method and Description |
---|---|
static GlobalPartitionInformation |
buildPartitionInfo(int numPartitions) |
static GlobalPartitionInformation |
buildPartitionInfo(int numPartitions,
int brokerPort) |
static java.util.List<GlobalPartitionInformation> |
buildPartitionInfoList(GlobalPartitionInformation partitionInformation) |
static KafkaConfig |
getKafkaConfig(KafkaTestBroker broker) |
static SimpleConsumer |
getKafkaConsumer(KafkaTestBroker broker) |
static java.util.Properties |
getProducerProperties(java.lang.String brokerConnectionString) |
static boolean |
verifyMessage(java.lang.String key,
java.lang.String message,
KafkaTestBroker broker,
SimpleConsumer simpleConsumer) |
public static final java.lang.String TOPIC
public static GlobalPartitionInformation buildPartitionInfo(int numPartitions)
public static java.util.List<GlobalPartitionInformation> buildPartitionInfoList(GlobalPartitionInformation partitionInformation)
public static GlobalPartitionInformation buildPartitionInfo(int numPartitions, int brokerPort)
public static SimpleConsumer getKafkaConsumer(KafkaTestBroker broker)
public static KafkaConfig getKafkaConfig(KafkaTestBroker broker)
public static java.util.Properties getProducerProperties(java.lang.String brokerConnectionString)
public static boolean verifyMessage(java.lang.String key, java.lang.String message, KafkaTestBroker broker, SimpleConsumer simpleConsumer)