{"id":37027439,"url":"https://github.com/t1/jax-rs-test-extension","last_synced_at":"2026-01-14T03:15:41.863Z","repository":{"id":39760515,"uuid":"212813355","full_name":"t1/jax-rs-test-extension","owner":"t1","description":"JUnit-5 extension to help testing JAX-RS infrastructure classes","archived":true,"fork":false,"pushed_at":"2022-05-31T17:49:13.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-10T00:47:44.347Z","etag":null,"topics":["integration-testing","jax-rs","junit5"],"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/t1.png","metadata":{"files":{"readme":"README.adoc","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":"2019-10-04T12:46:49.000Z","updated_at":"2023-01-28T00:21:06.000Z","dependencies_parsed_at":"2022-08-26T22:30:53.948Z","dependency_job_id":null,"html_url":"https://github.com/t1/jax-rs-test-extension","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/t1/jax-rs-test-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1%2Fjax-rs-test-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1%2Fjax-rs-test-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1%2Fjax-rs-test-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1%2Fjax-rs-test-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t1","download_url":"https://codeload.github.com/t1/jax-rs-test-extension/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1%2Fjax-rs-test-extension/sbom","scorecard":{"id":864636,"data":{"date":"2025-08-11","repo":{"name":"github.com/t1/jax-rs-test-extension","commit":"8a992ef725c89ea64b89c43833728b95a01fa98d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/25 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T02:20:52.134Z","repository_id":39760515,"created_at":"2025-08-24T02:20:52.134Z","updated_at":"2025-08-24T02:20:52.134Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["integration-testing","jax-rs","junit5"],"created_at":"2026-01-14T03:15:41.016Z","updated_at":"2026-01-14T03:15:41.857Z","avatar_url":"https://github.com/t1.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"= JAX-RS Test Extension image:https://maven-badges.herokuapp.com/maven-central/com.github.t1/jax-rs-test-extension/badge.svg[link=https://search.maven.org/artifact/com.github.t1/jax-rs-test-extension]\n\n[IMPORTANT]\nThis project has been archived!!!\nhttp://com.github/t1/wunderbar[WunderBar] might be a better fit for your use-case.\n\n\nVery simple (and fast) https://junit.org/junit5/[JUnit-5] extension to test JAX-RS infrastructure classes. Uses RestEasy + Undertow internally, but you shouldn't notice that too often; just stick to JAX-RS + JSON-B.\n\nThere are two use-cases:\n\n== 1. Boundaries\n\nThese are your classes that provide a REST service using JAX-RS server API; i.e.:\n\n[source,java]\n---------------------------------------------------------------\n@Path(\"/\") public class MyBoundary {\n    @GET public String get() { return \"foo\"; }\n}\n---------------------------------------------------------------\n\nCould be tested like this:\n\n[source,java]\n---------------------------------------------------------------\npublic class MyBoundaryTest {\n\n    @RegisterExtension static JaxRsClientTest jaxRs = new JaxRsClientTest(new MyBoundary());\n\n    @Test public void shouldGet() {\n        Response response = jaxRs.GET(\"/\");\n\n        assertThat(response.getStatusInfo()).isEqualTo(OK);\n        assertThat(response.readEntity(String.class)).isEqualTo(\"foo\");\n    }\n}\n---------------------------------------------------------------\n\n== 2. Gateways\n\nThese are your classes that consume a REST service using the JAX-RS client API, and you don't want to integrate with the real external service; i.e.:\n\n[source,java]\n---------------------------------------------------------------\npublic class MyGateway {\n    Client client;\n    URI baseUri;\n\n    public String getFoo() {\n        Response response = client.target(baseUri).request(TEXT_PLAIN_TYPE).get();\n        assert 200 == response.getStatus();\n        return response.readEntity(String.class);\n    }\n}\n---------------------------------------------------------------\n\nCould be tested like this:\n\n[source,java]\n---------------------------------------------------------------\npublic class MyGatewayTest {\n    @Path(\"/\") public static class MockService {\n        @GET public String get() { return \"foo\"; }\n    }\n\n    @RegisterExtension static JaxRsTestExtension jaxRs = new JaxRsTestExtension(new MockService());\n\n    @Test void shouldGet() {\n        MyGateway gateway = new MyGateway();\n        gateway.client = jaxRs.client();\n        gateway.baseUri = jaxRs.baseUri();\n\n        String foo = gateway.getFoo();\n\n        assertThat(foo).isEqualTo(\"foo\");\n    }\n}\n---------------------------------------------------------------\n\n== Limitations\n\n1. There is no dependency injection, etc. You'll have to pass in fully built JAX-RS service instances.\n2. This is _not_ for integration tests! E.g. it uses it's own `Application` class. These test qualify as a unit tests: they only test your Boundary or Gateway in isolation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft1%2Fjax-rs-test-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft1%2Fjax-rs-test-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft1%2Fjax-rs-test-extension/lists"}