File tree Expand file tree Collapse file tree 12 files changed +32
-33
lines changed
main/java/org/springframework/kafka/test
test/java/org/springframework/kafka/test Expand file tree Collapse file tree 12 files changed +32
-33
lines changed Original file line number Diff line number Diff line change 3838import java .util .function .Function ;
3939import java .util .stream .Collectors ;
4040
41+ import kafka .server .KafkaConfig ;
42+ import kafka .testkit .KafkaClusterTestKit ;
43+ import kafka .testkit .TestKitNodes ;
4144import org .apache .commons .logging .LogFactory ;
4245import org .apache .kafka .clients .CommonClientConfigs ;
4346import org .apache .kafka .clients .admin .AdminClient ;
5457import org .springframework .core .log .LogAccessor ;
5558import org .springframework .util .Assert ;
5659
57- import kafka .server .KafkaConfig ;
58- import kafka .testkit .KafkaClusterTestKit ;
59- import kafka .testkit .TestKitNodes ;
60-
6160/**
6261 * An embedded Kafka Broker(s) using KRaft.
6362 * This class is intended to be used in the unit tests.
Original file line number Diff line number Diff line change 1616
1717package org .springframework .kafka .test ;
1818
19- import static org .assertj .core .api .Assertions .assertThat ;
20-
2119import org .junit .jupiter .api .Test ;
2220
2321import org .springframework .util .StringUtils ;
2422
23+ import static org .assertj .core .api .Assertions .assertThat ;
24+
2525/**
2626 * @author Gary Russell
2727 * @since 3.1
Original file line number Diff line number Diff line change 1616
1717package org .springframework .kafka .test ;
1818
19- import static org .assertj .core .api .Assertions .assertThat ;
20-
2119import org .junit .jupiter .api .Test ;
2220
21+ import static org .assertj .core .api .Assertions .assertThat ;
22+
2323/**
2424 * @author Gary Russell
2525 * @since 2.3
Original file line number Diff line number Diff line change 1616
1717package org .springframework .kafka .test .assertj ;
1818
19+ import org .apache .kafka .clients .consumer .ConsumerRecord ;
20+ import org .junit .jupiter .api .Test ;
21+
1922import static org .assertj .core .api .Assertions .allOf ;
2023import static org .assertj .core .api .Assertions .assertThat ;
2124import static org .springframework .kafka .test .assertj .KafkaConditions .keyValue ;
2225import static org .springframework .kafka .test .assertj .KafkaConditions .partition ;
2326
24- import org .apache .kafka .clients .consumer .ConsumerRecord ;
25- import org .junit .jupiter .api .Test ;
26-
2727/**
2828 * @author Gary Russell
2929 * @since 2.2.12
Original file line number Diff line number Diff line change 1616
1717package org .springframework .kafka .test .condition ;
1818
19- import static org .assertj .core .api .Assertions .assertThat ;
20-
2119import org .junit .jupiter .api .Test ;
2220
2321import org .springframework .kafka .test .EmbeddedKafkaBroker ;
2422import org .springframework .kafka .test .EmbeddedKafkaZKBroker ;
2523import org .springframework .kafka .test .context .EmbeddedKafka ;
2624import org .springframework .kafka .test .utils .KafkaTestUtils ;
2725
26+ import static org .assertj .core .api .Assertions .assertThat ;
27+
2828/**
2929 * @author Gary Russell
3030 * @author Michał Padula
Original file line number Diff line number Diff line change 1616
1717package org .springframework .kafka .test .condition ;
1818
19- import static org .assertj .core .api .Assertions .assertThat ;
20-
2119import java .util .List ;
2220import java .util .concurrent .atomic .AtomicInteger ;
2321
3129import org .springframework .test .annotation .DirtiesContext ;
3230import org .springframework .test .context .junit .jupiter .SpringJUnitConfig ;
3331
32+ import static org .assertj .core .api .Assertions .assertThat ;
33+
3434/**
3535 * @author Lee Jaeheon
3636 * @author Soby Chacko
Original file line number Diff line number Diff line change 1616
1717package org .springframework .kafka .test .condition ;
1818
19- import static org .assertj .core .api .Assertions .assertThat ;
20-
2119import org .junit .jupiter .api .Test ;
2220
2321import org .springframework .beans .factory .annotation .Autowired ;
2725import org .springframework .test .annotation .DirtiesContext ;
2826import org .springframework .test .context .junit .jupiter .SpringJUnitConfig ;
2927
28+ import static org .assertj .core .api .Assertions .assertThat ;
29+
3030/**
3131 * @author Gary Russell
3232 * @since 2.7.2
Original file line number Diff line number Diff line change 1616
1717package org .springframework .kafka .test .context ;
1818
19- import static org .assertj .core .api .Assertions .assertThat ;
20-
2119import org .junit .jupiter .api .BeforeEach ;
2220import org .junit .jupiter .api .Test ;
2321
2725import org .springframework .kafka .test .EmbeddedKafkaBroker ;
2826import org .springframework .kafka .test .utils .KafkaTestUtils ;
2927
28+ import static org .assertj .core .api .Assertions .assertThat ;
29+
3030/**
3131 * @author Oleg Artyomov
3232 * @author Sergio Lourenco
Original file line number Diff line number Diff line change 1616
1717package org .springframework .kafka .test .hamcrest ;
1818
19- import static org .assertj .core .api .Assertions .assertThatExceptionOfType ;
20- import static org .hamcrest .MatcherAssert .assertThat ;
21- import static org .springframework .kafka .test .hamcrest .KafkaMatchers .hasKey ;
22- import static org .springframework .kafka .test .hamcrest .KafkaMatchers .hasPartition ;
23- import static org .springframework .kafka .test .hamcrest .KafkaMatchers .hasTimestamp ;
24- import static org .springframework .kafka .test .hamcrest .KafkaMatchers .hasValue ;
25-
2619import java .util .Optional ;
2720
2821import org .apache .kafka .clients .consumer .ConsumerRecord ;
2922import org .apache .kafka .common .header .internals .RecordHeaders ;
3023import org .apache .kafka .common .record .TimestampType ;
3124import org .junit .jupiter .api .Test ;
3225
26+ import static org .assertj .core .api .Assertions .assertThatExceptionOfType ;
27+ import static org .hamcrest .MatcherAssert .assertThat ;
28+ import static org .springframework .kafka .test .hamcrest .KafkaMatchers .hasKey ;
29+ import static org .springframework .kafka .test .hamcrest .KafkaMatchers .hasPartition ;
30+ import static org .springframework .kafka .test .hamcrest .KafkaMatchers .hasTimestamp ;
31+ import static org .springframework .kafka .test .hamcrest .KafkaMatchers .hasValue ;
32+
3333/**
3434 * @author Biju Kunjummen
3535 *
Original file line number Diff line number Diff line change 1616
1717package org .springframework .kafka .test .junit ;
1818
19- import static org .assertj .core .api .Assertions .assertThat ;
20-
2119import java .io .BufferedOutputStream ;
2220import java .io .File ;
2321import java .io .FileOutputStream ;
4947
5048import org .springframework .util .DefaultPropertiesPersister ;
5149
50+ import static org .assertj .core .api .Assertions .assertThat ;
51+
5252/**
5353 * @author Artem Bilan
5454 *
You can’t perform that action at this time.
0 commit comments