{"id":44296755,"url":"https://github.com/binout/jaxrs-unit","last_synced_at":"2026-02-11T01:10:53.470Z","repository":{"id":16622136,"uuid":"19377132","full_name":"binout/jaxrs-unit","owner":"binout","description":"A library for unit testing of JAX-RS application","archived":false,"fork":false,"pushed_at":"2017-03-03T12:56:42.000Z","size":99,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T14:17:26.065Z","etag":null,"topics":["java","javaee","jax-rs","jaxrs","test"],"latest_commit_sha":null,"homepage":null,"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/binout.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":"2014-05-02T14:07:41.000Z","updated_at":"2017-07-11T05:41:56.000Z","dependencies_parsed_at":"2022-09-26T21:00:59.024Z","dependency_job_id":null,"html_url":"https://github.com/binout/jaxrs-unit","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/binout/jaxrs-unit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binout%2Fjaxrs-unit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binout%2Fjaxrs-unit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binout%2Fjaxrs-unit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binout%2Fjaxrs-unit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binout","download_url":"https://codeload.github.com/binout/jaxrs-unit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binout%2Fjaxrs-unit/sbom","scorecard":{"id":238982,"data":{"date":"2025-08-11","repo":{"name":"github.com/binout/jaxrs-unit","commit":"a9387ff4036f8de6f31433c25b05bcdf0682a06c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":"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":"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":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 4/23 approved changesets -- score normalized to 1","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":"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":"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":"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 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"}}]},"last_synced_at":"2025-08-17T06:17:31.510Z","repository_id":16622136,"created_at":"2025-08-17T06:17:31.510Z","updated_at":"2025-08-17T06:17:31.510Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29323983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T00:34:26.354Z","status":"ssl_error","status_checked_at":"2026-02-11T00:34:09.494Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["java","javaee","jax-rs","jaxrs","test"],"created_at":"2026-02-11T01:10:50.289Z","updated_at":"2026-02-11T01:10:53.452Z","avatar_url":"https://github.com/binout.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"= jaxrs-unit\n:compat-mode:\n\nA library for unit testing of JAX-RS application.\n\n== Description\nThe goal is to write unit tests without a real JavaEE server.\nBut tests use real JAX-RS implementation (Jersey or RestEasy) with in-memory containers.\n\nJaxRS Unit provides an API to encapsulate the specific im-memory containers.\n\n== Build status\n\nimage:https://travis-ci.org/binout/jaxrs-unit.svg?branch=master[\"Build Status\", link=\"https://travis-ci.org/binout/jaxrs-unit\"]\n\n== Environment\n\n* +java-1.8+\n\n== Build\n\n[source,bash]\n----\nmvn clean verify\n----\n\n== Usage\n\n=== Maven\n\nYou have to add api dependency :\n\n[source, xml]\n----\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.binout\u003c/groupId\u003e\n    \u003cartifactId\u003ejaxrs-unit-api\u003c/artifactId\u003e\n    \u003cversion\u003e${version}\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n----\n\nYou have to choose an implementation :\n\n* RestEasy\n\n[source, xml]\n----\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.binout\u003c/groupId\u003e\n    \u003cartifactId\u003ejaxrs-unit-resteasy\u003c/artifactId\u003e\n    \u003cversion\u003e${version}\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n----\n\n* Jersey\n\n[source, xml]\n----\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.binout\u003c/groupId\u003e\n    \u003cartifactId\u003ejaxrs-unit-jersey\u003c/artifactId\u003e\n    \u003cversion\u003e${version}\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n----\n\n=== Hello World\n\nConsidering a JAX-RS resource :\n\n[source, java]\n----\n@Path(\"/hello\")\npublic class HelloResource {\n    @GET\n    public String hello() {\n        return \"hello\";\n    }\n}\n----\n\nYou can write a unit test like this :\n\n[source, java]\n----\npublic class HelloTest {\n    private JaxrsServer server;\n\n    @Before\n    public void init() {\n        server = JaxrsUnit.newServer(HelloResource.class);\n    }\n\n    @Test\n    public void should_return_hello() {\n        JaxrsResource resource = server.resource(\"/hello\");\n\n        JaxrsResponse response = resource.get();\n\n        assertThat(response.ok()).isTrue();\n        assertThat(response.content()).isEqualTo(\"hello\");\n    }\n}\n----\n\n== TODO\n\n* resource injection\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinout%2Fjaxrs-unit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinout%2Fjaxrs-unit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinout%2Fjaxrs-unit/lists"}