{"id":18254112,"url":"https://github.com/testcontainers/tc-guide-testing-spring-boot-kafka-listener","last_synced_at":"2025-04-04T17:30:39.800Z","repository":{"id":152308447,"uuid":"624660976","full_name":"testcontainers/tc-guide-testing-spring-boot-kafka-listener","owner":"testcontainers","description":"Testing Spring Boot Kafka Listener using Testcontainers Guide","archived":false,"fork":false,"pushed_at":"2023-12-01T16:20:14.000Z","size":179,"stargazers_count":7,"open_issues_count":4,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-05-22T17:24:52.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/testcontainers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-04-07T01:05:26.000Z","updated_at":"2024-03-28T07:55:08.000Z","dependencies_parsed_at":"2023-12-01T17:29:38.579Z","dependency_job_id":null,"html_url":"https://github.com/testcontainers/tc-guide-testing-spring-boot-kafka-listener","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testcontainers%2Ftc-guide-testing-spring-boot-kafka-listener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testcontainers%2Ftc-guide-testing-spring-boot-kafka-listener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testcontainers%2Ftc-guide-testing-spring-boot-kafka-listener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testcontainers%2Ftc-guide-testing-spring-boot-kafka-listener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testcontainers","download_url":"https://codeload.github.com/testcontainers/tc-guide-testing-spring-boot-kafka-listener/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223150742,"owners_count":17095959,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T10:10:29.658Z","updated_at":"2024-11-05T10:10:30.344Z","avatar_url":"https://github.com/testcontainers.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testing Spring Boot Kafka Listener using Testcontainers\n\nThis is sample code for [Testing Spring Boot Kafka Listener using Testcontainers](https://testcontainers.com/guides/testing-spring-boot-kafka-listener-using-testcontainers) guide.\n\n## 1. Setup Environment\nMake sure you have Java 8+ and a [compatible Docker environment](https://www.testcontainers.org/supported_docker_environment/) installed.\nIf you are going to use Maven build tool then make sure Java 17+ is installed.\n\nFor example:\n\n```shell\n$ java -version\nopenjdk version \"17.0.4\" 2022-07-19\nOpenJDK Runtime Environment Temurin-17.0.4+8 (build 17.0.4+8)\nOpenJDK 64-Bit Server VM Temurin-17.0.4+8 (build 17.0.4+8, mixed mode, sharing)\n$ docker version\n...\nServer: Docker Desktop 4.12.0 (85629)\n Engine:\n  Version:          20.10.17\n  API version:      1.41 (minimum version 1.12)\n  Go version:       go1.17.11\n...\n```\n\n## 2. Setup Project\n\n* Clone the repository\n\n```shell\ngit clone https://github.com/testcontainers/tc-guide-testing-spring-boot-kafka-listener.git\ncd tc-guide-testing-spring-boot-kafka-listener\n```\n\n* Open the **tc-guide-testing-spring-boot-kafka-listener** project in your favorite IDE.\n\n## 3. Run Tests\n\nRun the command to run the tests.\n\n```shell\n$ ./gradlew test //for Gradle\n$ ./mvnw verify  //for Maven\n```\n\nThe tests should pass.\n\n\u003e [!NOTE]\n\u003e The project is configured to automate the code formatting with spotless plugin\n\u003e using prettier-plugin-java, which internally requires Node.js runtime.\n\u003e If you don't have Node.js installed and want to disable the code formatting,\n\u003e you can pass additional parameter to the build command as shown below:\n\n```shell\n./gradlew build -x spotlessCheck //for Gradle\n./mvnw verify -Dspotless.check.skip=true //for Maven\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestcontainers%2Ftc-guide-testing-spring-boot-kafka-listener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestcontainers%2Ftc-guide-testing-spring-boot-kafka-listener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestcontainers%2Ftc-guide-testing-spring-boot-kafka-listener/lists"}