{"id":39912913,"url":"https://github.com/dropwizard/dropwizard-testing-junit6","last_synced_at":"2026-01-18T16:33:56.674Z","repository":{"id":318219520,"uuid":"1070386540","full_name":"dropwizard/dropwizard-testing-junit6","owner":"dropwizard","description":"Dropwizard Test Helpers for JUnit 6","archived":false,"fork":false,"pushed_at":"2026-01-12T01:34:03.000Z","size":113,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"release/5.0.x","last_synced_at":"2026-01-12T05:56:24.965Z","etag":null,"topics":["dropwizard","junit","junit6"],"latest_commit_sha":null,"homepage":"https://www.dropwizard.io/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dropwizard.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-05T20:21:22.000Z","updated_at":"2026-01-12T01:34:07.000Z","dependencies_parsed_at":"2025-10-05T22:22:19.180Z","dependency_job_id":"44bcf5f1-8c4a-4a33-b8ba-e5bc5d30a10e","html_url":"https://github.com/dropwizard/dropwizard-testing-junit6","commit_stats":null,"previous_names":["dropwizard/dropwizard-testing-junit6"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/dropwizard/dropwizard-testing-junit6","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropwizard%2Fdropwizard-testing-junit6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropwizard%2Fdropwizard-testing-junit6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropwizard%2Fdropwizard-testing-junit6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropwizard%2Fdropwizard-testing-junit6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dropwizard","download_url":"https://codeload.github.com/dropwizard/dropwizard-testing-junit6/tar.gz/refs/heads/release/5.0.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dropwizard%2Fdropwizard-testing-junit6/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28541654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T14:59:57.589Z","status":"ssl_error","status_checked_at":"2026-01-18T14:59:46.540Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["dropwizard","junit","junit6"],"created_at":"2026-01-18T16:33:56.069Z","updated_at":"2026-01-18T16:33:56.666Z","avatar_url":"https://github.com/dropwizard.png","language":"Java","readme":"# Dropwizard Testing for JUnit 6\n\nThis library provides test helpers for [Dropwizard](https://www.dropwizard.io/) applications using [JUnit 6](https://junit.org/junit6/).\n\n## Usage\n\nAdd the `dropwizard-testing-junit6` dependency to your `pom.xml`:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.dropwizard.modules\u003c/groupId\u003e\n    \u003cartifactId\u003edropwizard-testing-junit6\u003c/artifactId\u003e\n    \u003cversion\u003e5.0.0-SNAPSHOT\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\nThen, use the `DropwizardAppExtension` to test your Dropwizard application:\n\n```java\nimport io.dropwizard.core.Application;\nimport io.dropwizard.core.Configuration;\nimport io.dropwizard.core.setup.Environment;\nimport io.dropwizard.testing.junit6.DropwizardAppExtension;\nimport jakarta.ws.rs.GET;\nimport jakarta.ws.rs.Path;\nimport jakarta.ws.rs.client.Client;\nimport jakarta.ws.rs.core.Response;\nimport org.junit.jupiter.api.Test;\nimport org.junit.jupiter.api.extension.RegisterExtension;\n\nimport static org.assertj.core.api.Assertions.assertThat;\n\npublic class ExampleTest {\n\n    @RegisterExtension\n    public static final DropwizardAppExtension\u003cTestConfiguration\u003e EXTENSION =\n        new DropwizardAppExtension\u003c\u003e(TestApplication.class, \"config.yml\");\n\n    @Test\n    void testMyApplication() {\n        final Client client = EXTENSION.client();\n        final Response response = client.target(\n            String.format(\"http://localhost:%d/my-resource\", EXTENSION.getLocalPort()))\n            .request()\n            .get();\n\n        assertThat(response.getStatus()).isEqualTo(200);\n        assertThat(response.readEntity(String.class)).isEqualTo(\"Hello, world!\");\n    }\n\n    public static class TestApplication extends Application\u003cTestConfiguration\u003e {\n        @Override\n        public void run(TestConfiguration configuration, Environment environment) {\n            environment.jersey().register(new MyResource());\n        }\n    }\n\n    public static class TestConfiguration extends Configuration {\n    }\n\n    @Path(\"/my-resource\")\n    public static class MyResource {\n        @GET\n        public String get() {\n            return \"Hello, world!\";\n        }\n    }\n}\n```\n\n## License\n\nThis project is licensed under the Apache License, Version 2.0. See the [`LICENSE`](LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdropwizard%2Fdropwizard-testing-junit6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdropwizard%2Fdropwizard-testing-junit6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdropwizard%2Fdropwizard-testing-junit6/lists"}