{"id":16536522,"url":"https://github.com/lanwen/wiremock-junit5","last_synced_at":"2025-03-21T09:32:15.697Z","repository":{"id":57742728,"uuid":"94219430","full_name":"lanwen/wiremock-junit5","owner":"lanwen","description":"Wiremock extension to inject server into JUnit5 tests","archived":false,"fork":false,"pushed_at":"2019-08-15T11:46:28.000Z","size":30,"stargazers_count":47,"open_issues_count":7,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T23:51:57.703Z","etag":null,"topics":["junit5","mock-server","wiremock"],"latest_commit_sha":null,"homepage":"","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/lanwen.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}},"created_at":"2017-06-13T14:03:25.000Z","updated_at":"2024-10-23T20:15:30.000Z","dependencies_parsed_at":"2022-09-09T11:22:49.019Z","dependency_job_id":null,"html_url":"https://github.com/lanwen/wiremock-junit5","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanwen%2Fwiremock-junit5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanwen%2Fwiremock-junit5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanwen%2Fwiremock-junit5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanwen%2Fwiremock-junit5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lanwen","download_url":"https://codeload.github.com/lanwen/wiremock-junit5/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244772556,"owners_count":20508010,"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":["junit5","mock-server","wiremock"],"created_at":"2024-10-11T18:31:56.045Z","updated_at":"2025-03-21T09:32:15.383Z","avatar_url":"https://github.com/lanwen.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wiremock JUnit5\n\n[![codecov](https://codecov.io/gh/lanwen/wiremock-junit5/branch/master/graph/badge.svg)](https://codecov.io/gh/lanwen/wiremock-junit5)\n[![Maven Central](https://img.shields.io/maven-central/v/ru.lanwen.wiremock/wiremock-junit5.svg)](https://maven-badges.herokuapp.com/maven-central/ru.lanwen.wiremock/wiremock-junit5)\n\nSimple extension to inject ready-to-use wiremock server to JUnit5 test\n\n\n## Start Guide\n\n1. Add dependency\n\n```\nru.lanwen.wiremock:wiremock-junit5:${wiremock-junit5.version}\n```\n\n2. Create JUnit5 test:\n\n```java\n@ExtendWith({\n        WiremockResolver.class,\n        WiremockUriResolver.class\n})\nclass WiremockJUnit5Test {\n\n    @Test\n    void shouldInjectWiremock(@Wiremock WireMockServer server, @WiremockUri String uri) {\n        customize(server); // your setup\n        SomeApiClient api = SomeApiClient.connect(uri);\n\n        Response response = api.call();\n        assertThat(response.headers(), hasSize(1));\n    }\n}\n\n```\n\n### Reuse customization\n\nWith `ru.lanwen.wiremock.config.WiremockCustomizer` and `ru.lanwen.wiremock.config.WiremockConfigFactory`\nyou can reuse logic of initial setup.\n\nPlease look into test for example.\n\n## Compatibility with JUnit5\n\n- *v1.0.1* `-\u003e` *M4*\n- *v1.1.0* `-\u003e` *RC2*\n- *v1.1.1* `-\u003e` *GA*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanwen%2Fwiremock-junit5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flanwen%2Fwiremock-junit5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanwen%2Fwiremock-junit5/lists"}