Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,8 @@ public void configure_consumer_with_exponential_blocking_retry_policy_max_interv

@Test
public void configure_producer_with_max_request_size_custom_props() throws Exception {
GreyhoundConfig config = new GreyhoundConfig(environment.kafka().bootstrapServers(), new HashMap<String, String>() {
{
put("max.request.size", "1");
}
});
GreyhoundConfig config = new GreyhoundConfig(environment.kafka().bootstrapServers(),
Collections.singletonMap("max.request.size", "1"));
GreyhoundProducerBuilder producerBuilder = new GreyhoundProducerBuilder(config);
try (GreyhoundProducer producer = producerBuilder.build()) {
CompletableFuture<OffsetAndMetadata> producerFuture = producer.produce(
Expand All @@ -290,11 +287,8 @@ public void configure_consumer_with_max_poll_interval_ms_custom_props() throws E
int numOfMessages = 1;
List<ConsumerRecord<Integer, String>> consumedRecords = new LinkedList<>();
CountDownLatch lock = new CountDownLatch(numOfMessages);
GreyhoundConfig consumerConfig = new GreyhoundConfig(environment.kafka().bootstrapServers(), new HashMap<String, String>() {
{
put("max.poll.interval.ms", "0");
}
});
GreyhoundConfig consumerConfig = new GreyhoundConfig(environment.kafka().bootstrapServers(),
Collections.singletonMap("max.poll.interval.ms", "0"));
GreyhoundConsumersBuilder consumersBuilder = new GreyhoundConsumersBuilder(consumerConfig)
.withConsumer(
GreyhoundConsumer.with(
Expand Down