{"id":56122,"library":"spring-kafka-test","title":"Spring Kafka Test","description":"Provides test support utilities for Spring Kafka applications, including embedded Kafka broker and test templates.","status":"active","version":"4.0.5","language":"java","source_language":null,"source_url":"https://github.com/spring-projects/spring-kafka","tags":["kafka","testing","spring","integration-test"],"install":[{"cmd":"<dependency>\n  <groupId>org.springframework.kafka</groupId>\n  <artifactId>spring-kafka-test</artifactId>\n  <version>4.0.5</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.springframework.kafka:spring-kafka-test:4.0.5'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"EmbeddedKafkaBroker","correct":"org.springframework.kafka.test.EmbeddedKafkaBroker"}],"quickstart":{"code":"import org.springframework.kafka.test.EmbeddedKafkaBroker;\nimport org.springframework.kafka.test.context.EmbeddedKafka;\n\n@EmbeddedKafka(partitions = 1, topics = \"test-topic\")\npublic class MyTest {\n    @Autowired\n    private EmbeddedKafkaBroker broker;\n}","lang":"java","description":"Start an embedded Kafka broker for integration testing."},"warnings":[{"fix":"Configure broker properties to use random ports or specify non-default ports.","message":"EmbeddedKafkaBroker may conflict with existing Kafka instances on default ports.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'applic':11 'broker':15 'embed':13 'includ':12 'integr':23 'integration-test':22 'kafka':2,10,14,19 'provid':4 'spring':1,9,21 'support':6 'templat':18 'test':3,5,17,20,24 'util':7","created_at":"2026-06-15T10:21:49.331242+00:00","updated_at":"2026-06-15T10:21:49.331242+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/spring-projects/spring-kafka","github":"https://github.com/spring-projects/spring-kafka","docs":"https://appdoc.app/artifact/org.springframework.kafka/spring-kafka-test/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing","messaging"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}