BAEL-7351 test configuration
This commit is contained in:
parent
45a8c4d66f
commit
7ade810d76
|
@ -13,8 +13,10 @@ import org.springframework.boot.test.context.SpringBootTest;
|
|||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.kafka.test.context.EmbeddedKafka;
|
||||
import org.springframework.test.annotation.DirtiesContext;
|
||||
import org.springframework.test.context.ActiveProfiles;
|
||||
|
||||
@SpringBootTest(classes = Main.class)
|
||||
@ActiveProfiles("groupId")
|
||||
@ComponentScan(basePackages = "com.baeldung.spring.kafka.groupId")
|
||||
@DirtiesContext
|
||||
@EmbeddedKafka(partitions = 4, topics = { "${kafka.topic.name:test-topic}" }, brokerProperties = { "listeners=PLAINTEXT://localhost:8000", "port=8000" })
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
spring.kafka.bootstrap-servers=localhost:8000
|
Loading…
Reference in New Issue