A B C D E F G H J K L M O P R S T V W Z
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addTopics(String...) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Add topics to the existing broker(s) using the configured number of partitions.
- addTopics(NewTopic...) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Add topics to the existing broker(s).
- addTopicsWithResults(String...) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Add topics to the existing broker(s) using the configured number of partitions.
- addTopicsWithResults(NewTopic...) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Add topics to the existing broker(s) and returning a map of results.
- adjustLogLevels(String, List<Class<?>>, List<String>, Level) - Static method in class org.springframework.kafka.test.utils.JUnitUtils
- after() - Method in class org.springframework.kafka.test.rule.EmbeddedKafkaRule
- afterAll(ExtensionContext) - Method in class org.springframework.kafka.test.condition.EmbeddedKafkaCondition
- afterAll(ExtensionContext) - Method in class org.springframework.kafka.test.condition.LogLevelsCondition
- afterEach(ExtensionContext) - Method in class org.springframework.kafka.test.condition.LogLevelsCondition
- afterPropertiesSet() - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
- apply(Statement, FrameworkMethod, Object) - Method in class org.springframework.kafka.test.rule.Log4j2LevelAdjuster
B
- BEAN_NAME - Static variable in class org.springframework.kafka.test.EmbeddedKafkaBroker
- before() - Method in class org.springframework.kafka.test.rule.EmbeddedKafkaRule
- beforeAll(ExtensionContext) - Method in class org.springframework.kafka.test.condition.LogLevelsCondition
- beforeEach(ExtensionContext) - Method in class org.springframework.kafka.test.condition.LogLevelsCondition
- bootstrapServersProperty() - Method in annotation type org.springframework.kafka.test.context.EmbeddedKafka
-
The property name to set with the bootstrap server addresses instead of the default "spring.embedded.kafka.brokers".
- bounce(BrokerAddress) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
- BROKER_LIST_PROPERTY - Static variable in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Set the value of this property to a property name that should be set to the list of embedded broker addresses instead of "spring.embedded.kafka.brokers".
- BrokerAddress - Class in org.springframework.kafka.test.core
-
Encapsulates the address of a Kafka broker.
- BrokerAddress(String) - Constructor for class org.springframework.kafka.test.core.BrokerAddress
- BrokerAddress(String, int) - Constructor for class org.springframework.kafka.test.core.BrokerAddress
- BrokerAddress(BrokerEndPoint) - Constructor for class org.springframework.kafka.test.core.BrokerAddress
- brokerListProperty(String) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Set the system property with this name to the list of broker addresses.
- brokerProperties() - Method in annotation type org.springframework.kafka.test.context.EmbeddedKafka
-
Properties in form key=value that should be added to the broker config before runs.
- brokerProperties(Map<String, String>) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Specify the properties to configure Kafka Broker before start, e.g.
- brokerProperties(Map<String, String>) - Method in class org.springframework.kafka.test.rule.EmbeddedKafkaRule
-
Specify the properties to configure Kafka Broker before start, e.g.
- brokerPropertiesLocation() - Method in annotation type org.springframework.kafka.test.context.EmbeddedKafka
-
Spring
Resource
url specifying the location of properties that should be added to the broker config. - brokerProperty(String, Object) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Specify a broker property.
- brokerProperty(String, Object) - Method in class org.springframework.kafka.test.rule.EmbeddedKafkaRule
-
Specify a broker property.
C
- categories() - Method in annotation type org.springframework.kafka.test.condition.LogLevels
-
Category names representing Log4j or Logback categories to change.
- categories(String...) - Method in class org.springframework.kafka.test.rule.Log4j2LevelAdjuster
- classes() - Method in annotation type org.springframework.kafka.test.condition.LogLevels
-
Classes representing Log4j categories to change.
- consumeFromAllEmbeddedTopics(Consumer<?, ?>) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Subscribe a consumer to all the embedded topics.
- consumeFromAnEmbeddedTopic(Consumer<?, ?>, String) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Subscribe a consumer to one of the embedded topics.
- consumeFromEmbeddedTopics(Consumer<?, ?>, String...) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Subscribe a consumer to one or more of the embedded topics.
- consumerProps(String, String, String) - Static method in class org.springframework.kafka.test.utils.KafkaTestUtils
-
Set up test properties for an
<Integer, String>
consumer. - consumerProps(String, String, EmbeddedKafkaBroker) - Static method in class org.springframework.kafka.test.utils.KafkaTestUtils
-
Set up test properties for an
<Integer, String>
consumer. - ConsumerRecordKeyCondition(K) - Constructor for class org.springframework.kafka.test.assertj.KafkaConditions.ConsumerRecordKeyCondition
- ConsumerRecordKeyMatcher(K) - Constructor for class org.springframework.kafka.test.hamcrest.KafkaMatchers.ConsumerRecordKeyMatcher
- ConsumerRecordKeyValueCondition(K, V) - Constructor for class org.springframework.kafka.test.assertj.KafkaConditions.ConsumerRecordKeyValueCondition
- ConsumerRecordPartitionCondition(int) - Constructor for class org.springframework.kafka.test.assertj.KafkaConditions.ConsumerRecordPartitionCondition
- ConsumerRecordPartitionMatcher(int) - Constructor for class org.springframework.kafka.test.hamcrest.KafkaMatchers.ConsumerRecordPartitionMatcher
- ConsumerRecordTimestampCondition(TimestampType, long) - Constructor for class org.springframework.kafka.test.assertj.KafkaConditions.ConsumerRecordTimestampCondition
- ConsumerRecordTimestampMatcher(TimestampType, long) - Constructor for class org.springframework.kafka.test.hamcrest.KafkaMatchers.ConsumerRecordTimestampMatcher
- ConsumerRecordValueCondition(V) - Constructor for class org.springframework.kafka.test.assertj.KafkaConditions.ConsumerRecordValueCondition
- ConsumerRecordValueMatcher(V) - Constructor for class org.springframework.kafka.test.hamcrest.KafkaMatchers.ConsumerRecordValueMatcher
- ContainerTestUtils - Class in org.springframework.kafka.test.utils
-
Utilities for testing listener containers.
- controlledShutdown() - Method in annotation type org.springframework.kafka.test.context.EmbeddedKafka
- count() - Method in annotation type org.springframework.kafka.test.context.EmbeddedKafka
D
- DEFAULT_PORT - Static variable in class org.springframework.kafka.test.core.BrokerAddress
- DEFAULT_ZK_CONNECTION_TIMEOUT - Static variable in class org.springframework.kafka.test.EmbeddedKafkaBroker
- DEFAULT_ZK_SESSION_TIMEOUT - Static variable in class org.springframework.kafka.test.EmbeddedKafkaBroker
- defaultPropertyOverrides() - Static method in class org.springframework.kafka.test.utils.KafkaTestUtils
-
Return a
Properties
object equal to the default consumer property overrides. - describeTo(Description) - Method in class org.springframework.kafka.test.hamcrest.KafkaMatchers.ConsumerRecordKeyMatcher
- describeTo(Description) - Method in class org.springframework.kafka.test.hamcrest.KafkaMatchers.ConsumerRecordPartitionMatcher
- describeTo(Description) - Method in class org.springframework.kafka.test.hamcrest.KafkaMatchers.ConsumerRecordTimestampMatcher
- describeTo(Description) - Method in class org.springframework.kafka.test.hamcrest.KafkaMatchers.ConsumerRecordValueMatcher
- destroy() - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
- doWithAdmin(Consumer<AdminClient>) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Create an
AdminClient
; invoke the callback and reliably close the admin. - doWithAdminFunction(Function<AdminClient, T>) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Create an
AdminClient
; invoke the callback and reliably close the admin.
E
- EmbeddedKafka - Annotation Type in org.springframework.kafka.test.context
-
Annotation that can be specified on a test class that runs Spring Kafka based tests.
- EmbeddedKafkaBroker - Class in org.springframework.kafka.test
-
An embedded Kafka Broker(s) and Zookeeper manager.
- EmbeddedKafkaBroker(int) - Constructor for class org.springframework.kafka.test.EmbeddedKafkaBroker
- EmbeddedKafkaBroker(int, boolean, int, String...) - Constructor for class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Create embedded Kafka brokers listening on random ports.
- EmbeddedKafkaBroker(int, boolean, String...) - Constructor for class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Create embedded Kafka brokers.
- EmbeddedKafkaBroker.EmbeddedZookeeper - Class in org.springframework.kafka.test
-
Ported from scala to allow setting the port.
- EmbeddedKafkaCondition - Class in org.springframework.kafka.test.condition
-
JUnit5 condition for an embedded broker.
- EmbeddedKafkaCondition() - Constructor for class org.springframework.kafka.test.condition.EmbeddedKafkaCondition
- EmbeddedKafkaRule - Class in org.springframework.kafka.test.rule
-
A
TestRule
wrapper around anEmbeddedKafkaBroker
. - EmbeddedKafkaRule(int) - Constructor for class org.springframework.kafka.test.rule.EmbeddedKafkaRule
- EmbeddedKafkaRule(int, boolean, int, String...) - Constructor for class org.springframework.kafka.test.rule.EmbeddedKafkaRule
-
Create embedded Kafka brokers listening on random ports.
- EmbeddedKafkaRule(int, boolean, String...) - Constructor for class org.springframework.kafka.test.rule.EmbeddedKafkaRule
-
Create embedded Kafka brokers.
- EmbeddedZookeeper(int) - Constructor for class org.springframework.kafka.test.EmbeddedKafkaBroker.EmbeddedZookeeper
- equals(Object) - Method in class org.springframework.kafka.test.core.BrokerAddress
- evaluateExecutionCondition(ExtensionContext) - Method in class org.springframework.kafka.test.condition.EmbeddedKafkaCondition
- evaluateExecutionCondition(ExtensionContext) - Method in class org.springframework.kafka.test.condition.LogLevelsCondition
F
- fromAddress(String) - Static method in class org.springframework.kafka.test.core.BrokerAddress
G
- getBroker() - Static method in class org.springframework.kafka.test.condition.EmbeddedKafkaCondition
- getBrokerAddress(int) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
- getBrokerAddresses() - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
- getBrokersAsString() - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
- getCurrentOffset(String, String, String, int) - Static method in class org.springframework.kafka.test.utils.KafkaTestUtils
-
Get the current offset and metadata for the provided group/topic/partition.
- getEmbeddedKafka() - Method in class org.springframework.kafka.test.rule.EmbeddedKafkaRule
-
Return an underlying delegator
EmbeddedKafkaBroker
instance. - getEndOffsets(Consumer<?, ?>, String, Integer...) - Static method in class org.springframework.kafka.test.utils.KafkaTestUtils
-
Return the end offsets of the requested topic/partitions
- getHost() - Method in class org.springframework.kafka.test.core.BrokerAddress
- getKafkaServer(int) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
- getKafkaServers() - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
- getLogDir() - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker.EmbeddedZookeeper
- getOneRecord(String, String, String, int, boolean, boolean, long) - Static method in class org.springframework.kafka.test.utils.KafkaTestUtils
-
Get a single record for the group from the topic/partition.
- getPartitionsPerTopic() - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
- getPort() - Method in class org.springframework.kafka.test.core.BrokerAddress
- getPort() - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker.EmbeddedZookeeper
- getPropertyValue(Object, String) - Static method in class org.springframework.kafka.test.utils.KafkaTestUtils
-
Uses nested
DirectFieldAccessor
s to obtain a property using dotted notation to traverse fields; e.g. - getPropertyValue(Object, String, Class<T>) - Static method in class org.springframework.kafka.test.utils.KafkaTestUtils
-
A typed version of
getPropertyValue(Object, String)
. - getRecords(Consumer<K, V>) - Static method in class org.springframework.kafka.test.utils.KafkaTestUtils
-
Poll the consumer for records.
- getRecords(Consumer<K, V>, long) - Static method in class org.springframework.kafka.test.utils.KafkaTestUtils
-
Poll the consumer for records.
- getRecords(Consumer<K, V>, long, int) - Static method in class org.springframework.kafka.test.utils.KafkaTestUtils
-
Poll the consumer for records.
- getSingleRecord(Consumer<K, V>, String) - Static method in class org.springframework.kafka.test.utils.KafkaTestUtils
-
Poll the consumer, expecting a single record for the specified topic.
- getSingleRecord(Consumer<K, V>, String, long) - Static method in class org.springframework.kafka.test.utils.KafkaTestUtils
-
Poll the consumer, expecting a single record for the specified topic.
- getSnapshotDir() - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker.EmbeddedZookeeper
- getTopics() - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
- getZkPort() - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Get the port that the embedded Zookeeper is running on or will run on.
- getZookeeper() - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
- getZooKeeperClient() - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Return the ZooKeeperClient.
- getZookeeperConnectionString() - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
H
- hashCode() - Method in class org.springframework.kafka.test.core.BrokerAddress
- hasKey(K) - Static method in class org.springframework.kafka.test.hamcrest.KafkaMatchers
- hasPartition(int) - Static method in class org.springframework.kafka.test.hamcrest.KafkaMatchers
- hasTimestamp(long) - Static method in class org.springframework.kafka.test.hamcrest.KafkaMatchers
-
Matcher testing the timestamp of a
ConsumerRecord
assuming the topic has been set withCreateTime
. - hasTimestamp(TimestampType, long) - Static method in class org.springframework.kafka.test.hamcrest.KafkaMatchers
-
Matcher testing the timestamp of a
ConsumerRecord
- hasValue(V) - Static method in class org.springframework.kafka.test.hamcrest.KafkaMatchers
J
- JUnitUtils - Class in org.springframework.kafka.test.utils
-
Utility methods for JUnit rules and conditions.
- JUnitUtils.LevelsContainer - Class in org.springframework.kafka.test.utils
K
- KafkaConditions - Class in org.springframework.kafka.test.assertj
-
AssertJ custom
Condition
s. - KafkaConditions.ConsumerRecordKeyCondition<K> - Class in org.springframework.kafka.test.assertj
- KafkaConditions.ConsumerRecordKeyValueCondition<K,V> - Class in org.springframework.kafka.test.assertj
- KafkaConditions.ConsumerRecordPartitionCondition - Class in org.springframework.kafka.test.assertj
- KafkaConditions.ConsumerRecordTimestampCondition - Class in org.springframework.kafka.test.assertj
- KafkaConditions.ConsumerRecordValueCondition<V> - Class in org.springframework.kafka.test.assertj
- KafkaMatchers - Class in org.springframework.kafka.test.hamcrest
-
Hamcrest
Matcher
s utilities. - KafkaMatchers.ConsumerRecordKeyMatcher<K> - Class in org.springframework.kafka.test.hamcrest
- KafkaMatchers.ConsumerRecordPartitionMatcher - Class in org.springframework.kafka.test.hamcrest
- KafkaMatchers.ConsumerRecordTimestampMatcher - Class in org.springframework.kafka.test.hamcrest
- KafkaMatchers.ConsumerRecordValueMatcher<V> - Class in org.springframework.kafka.test.hamcrest
- kafkaPorts(int...) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Set explicit ports on which the kafka brokers will listen.
- kafkaPorts(int...) - Method in class org.springframework.kafka.test.rule.EmbeddedKafkaRule
-
Set explicit ports on which the kafka brokers will listen.
- KafkaTestUtils - Class in org.springframework.kafka.test.utils
-
Kafka testing utilities.
- key(K) - Static method in class org.springframework.kafka.test.assertj.KafkaConditions
- keyValue(K, V) - Static method in class org.springframework.kafka.test.assertj.KafkaConditions
L
- level() - Method in annotation type org.springframework.kafka.test.condition.LogLevels
-
The Log4j level name to switch the categories to during the test.
- LevelsContainer(Map<Class<?>, Level>, Map<String, Level>) - Constructor for class org.springframework.kafka.test.utils.JUnitUtils.LevelsContainer
- Log4j2LevelAdjuster - Class in org.springframework.kafka.test.rule
-
A JUnit method @Rule that changes the logger level for a set of classes while a test method is running.
- Log4j2LevelAdjuster(Level, Class<?>...) - Constructor for class org.springframework.kafka.test.rule.Log4j2LevelAdjuster
- LogLevels - Annotation Type in org.springframework.kafka.test.condition
-
Test classes annotated with this will change logging levels between tests.
- LogLevelsCondition - Class in org.springframework.kafka.test.condition
-
JUnit condition that adjusts and reverts log levels before/after each test.
- LogLevelsCondition() - Constructor for class org.springframework.kafka.test.condition.LogLevelsCondition
M
- matches(Object, Description) - Method in class org.springframework.kafka.test.hamcrest.KafkaMatchers.ConsumerRecordKeyMatcher
- matches(Object, Description) - Method in class org.springframework.kafka.test.hamcrest.KafkaMatchers.ConsumerRecordPartitionMatcher
- matches(Object, Description) - Method in class org.springframework.kafka.test.hamcrest.KafkaMatchers.ConsumerRecordTimestampMatcher
- matches(Object, Description) - Method in class org.springframework.kafka.test.hamcrest.KafkaMatchers.ConsumerRecordValueMatcher
- matches(ConsumerRecord<?, ?>) - Method in class org.springframework.kafka.test.assertj.KafkaConditions.ConsumerRecordPartitionCondition
- matches(ConsumerRecord<?, ?>) - Method in class org.springframework.kafka.test.assertj.KafkaConditions.ConsumerRecordTimestampCondition
- matches(ConsumerRecord<?, V>) - Method in class org.springframework.kafka.test.assertj.KafkaConditions.ConsumerRecordValueCondition
- matches(ConsumerRecord<K, ?>) - Method in class org.springframework.kafka.test.assertj.KafkaConditions.ConsumerRecordKeyCondition
- matches(ConsumerRecord<K, V>) - Method in class org.springframework.kafka.test.assertj.KafkaConditions.ConsumerRecordKeyValueCondition
O
- org.springframework.kafka.test - package org.springframework.kafka.test
- org.springframework.kafka.test.assertj - package org.springframework.kafka.test.assertj
- org.springframework.kafka.test.condition - package org.springframework.kafka.test.condition
-
Provides classes for JUnit5 conditions.
- org.springframework.kafka.test.context - package org.springframework.kafka.test.context
- org.springframework.kafka.test.core - package org.springframework.kafka.test.core
- org.springframework.kafka.test.hamcrest - package org.springframework.kafka.test.hamcrest
- org.springframework.kafka.test.rule - package org.springframework.kafka.test.rule
- org.springframework.kafka.test.utils - package org.springframework.kafka.test.utils
P
- parseBooleanProperty(String) - Static method in class org.springframework.kafka.test.utils.JUnitUtils
-
Return the parsed value if the provided property exists in the environment or system properties.
- partition(int) - Static method in class org.springframework.kafka.test.assertj.KafkaConditions
- partitions() - Method in annotation type org.springframework.kafka.test.context.EmbeddedKafka
- ports() - Method in annotation type org.springframework.kafka.test.context.EmbeddedKafka
-
Set explicit ports on which the kafka brokers will listen.
- producerProps(String) - Static method in class org.springframework.kafka.test.utils.KafkaTestUtils
-
Set up test properties for an
<Integer, String>
producer. - producerProps(EmbeddedKafkaBroker) - Static method in class org.springframework.kafka.test.utils.KafkaTestUtils
-
Set up test properties for an
<Integer, String>
producer.
R
- resolveParameter(ParameterContext, ExtensionContext) - Method in class org.springframework.kafka.test.condition.EmbeddedKafkaCondition
- restart(int) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
- revertLevels(String, JUnitUtils.LevelsContainer) - Static method in class org.springframework.kafka.test.utils.JUnitUtils
S
- setAdminTimeout(int) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Set the timeout in seconds for admin operations (e.g.
- setZkPort(int) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Set the port to run the embedded Zookeeper on (default random).
- shutdown() - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker.EmbeddedZookeeper
- SPRING_EMBEDDED_KAFKA_BROKERS - Static variable in class org.springframework.kafka.test.EmbeddedKafkaBroker
- SPRING_EMBEDDED_ZOOKEEPER_CONNECT - Static variable in class org.springframework.kafka.test.EmbeddedKafkaBroker
- supportsParameter(ParameterContext, ExtensionContext) - Method in class org.springframework.kafka.test.condition.EmbeddedKafkaCondition
T
- timestamp(long) - Static method in class org.springframework.kafka.test.assertj.KafkaConditions
- timestamp(TimestampType, long) - Static method in class org.springframework.kafka.test.assertj.KafkaConditions
- topics() - Method in annotation type org.springframework.kafka.test.context.EmbeddedKafka
-
Topics that should be created Topics may contain property place holders, e.g.
- toString() - Method in class org.springframework.kafka.test.core.BrokerAddress
V
- value() - Method in annotation type org.springframework.kafka.test.context.EmbeddedKafka
- value(V) - Static method in class org.springframework.kafka.test.assertj.KafkaConditions
W
- waitForAssignment(Object, int) - Static method in class org.springframework.kafka.test.utils.ContainerTestUtils
-
Wait until the container has the required number of assigned partitions.
Z
- zkConnectionTimeout() - Method in annotation type org.springframework.kafka.test.context.EmbeddedKafka
-
Timeout for internal ZK client connection.
- zkConnectionTimeout(int) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Set connection timeout for the client to the embedded Zookeeper.
- zkPort(int) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Set an explicit port for the embedded Zookeeper.
- zkPort(int) - Method in class org.springframework.kafka.test.rule.EmbeddedKafkaRule
- zkSessionTimeout() - Method in annotation type org.springframework.kafka.test.context.EmbeddedKafka
-
Timeout for internal ZK client session.
- zkSessionTimeout(int) - Method in class org.springframework.kafka.test.EmbeddedKafkaBroker
-
Set session timeout for the client to the embedded Zookeeper.
- zookeeperPort() - Method in annotation type org.springframework.kafka.test.context.EmbeddedKafka
-
Set the port on which the embedded Zookeeper should listen;
All Classes All Packages