{"id":26002727,"url":"https://github.com/1and1/jsoup-hamcrest","last_synced_at":"2026-06-24T03:31:32.556Z","repository":{"id":57737525,"uuid":"228814462","full_name":"1and1/jsoup-hamcrest","owner":"1and1","description":"JSoup Hamcrest Matchers brings the power of css matchers to your tests.","archived":false,"fork":false,"pushed_at":"2019-12-18T17:07:35.000Z","size":26,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-07-23T06:44:51.587Z","etag":null,"topics":["acceptance-testing","css-selector","hamcrest-matchers","integration-testing","jsoup","junit4","junit5","spock-framework","testing","unit-testing"],"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/1and1.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-18T10:21:31.000Z","updated_at":"2020-12-08T09:34:51.000Z","dependencies_parsed_at":"2022-08-24T10:52:11.614Z","dependency_job_id":null,"html_url":"https://github.com/1and1/jsoup-hamcrest","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/1and1/jsoup-hamcrest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1and1%2Fjsoup-hamcrest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1and1%2Fjsoup-hamcrest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1and1%2Fjsoup-hamcrest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1and1%2Fjsoup-hamcrest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1and1","download_url":"https://codeload.github.com/1and1/jsoup-hamcrest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1and1%2Fjsoup-hamcrest/sbom","scorecard":{"id":2011,"data":{"date":"2025-08-11","repo":{"name":"github.com/1and1/jsoup-hamcrest","commit":"58e8b6eff22f5c7c07aa8c9928296de0324b553f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/9 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":"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: License.txt: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":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-gp7f-rwcx-9369","Warn: Project is vulnerable to: GHSA-m72m-mhq2-9p6c"],"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-14T12:46:49.184Z","repository_id":57737525,"created_at":"2025-08-14T12:46:49.184Z","updated_at":"2025-08-14T12:46:49.184Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34716323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"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":["acceptance-testing","css-selector","hamcrest-matchers","integration-testing","jsoup","junit4","junit5","spock-framework","testing","unit-testing"],"created_at":"2025-03-05T19:30:10.839Z","updated_at":"2026-06-24T03:31:32.538Z","avatar_url":"https://github.com/1and1.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[.float-group]\n--\nimage::https://img.shields.io/maven-central/v/net.oneandone.jsoup/jsoup-hamcrest[link=https://search.maven.org/artifact/net.oneandone.jsoup/jsoup-hamcrest,float=left]\nimage::https://img.shields.io/github/license/1and1/jsoup-hamcrest[link=License.txt,float=left]\nimage::https://img.shields.io/travis/1and1/jsoup-hamcrest[link=https://travis-ci.com/1and1/jsoup-hamcrest/branches,float=left]\n--\n\n== JSoup Hamcrest Matchers\n\njsoup-hamcrest brings the power of css matchers to your tests.\n\n=== Maven\n\n[source,xml]\n----\n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003enet.oneandone.jsoup\u003c/groupId\u003e\n        \u003cartifactId\u003ejsoup-hamcrest\u003c/artifactId\u003e\n        \u003cversion\u003e1.0.0\u003c/version\u003e\n        \u003cscope\u003etest\u003c/scope\u003e\n    \u003c/dependency\u003e\n\u003c/dependencies\u003e\n----\n\nYou can check the latest version https://search.maven.org/artifact/net.oneandone.jsoup/jsoup-hamcrest[here].\n\n=== Usage\n\njsoup-hamcrest uses a fluent api design to create your assertions, while still offering the comparability of Hamcrest matchers.\n\n[source,java]\n----\nimport static net.oneandone.jsoup.hamcrest.fluent.DocumentAssertions.anElement;  // \u003c1\u003e\nimport static net.oneandone.jsoup.hamcrest.fluent.JsoupAssertions.html;          // \u003c1\u003e\n\nhtml(source)                                                  // \u003c2\u003e\n    .expect(anElement(\"#exampleInputEmail\")                   // \u003c3\u003e\n        .hasAttribute(\"placeholder\")                          // \u003c4\u003e\n        .hasAttribute(\"placeholder\", \"Email\")                 // \u003c5\u003e\n        .hasAttribute(\"placeholder\", equalTo(\"Email\")));      // \u003c6\u003e\n----\n\u003c1\u003e static import of factory methods for better readability (optional)\n\u003c2\u003e create an instance of `JsoupAssertions` using `html` factory method\n\u003c3\u003e create an expectation, you can create multiple expectations for a document by chaining `expect` or its alias `and`.\n    `anElement` creates a matcher for a single element with the given css query.\n    (There is also `eachElement` and `elements` for performing assertions on each element or on the collection of found elements respectively)\n\u003c4\u003e `hasAttribute` asserts the existence of the `placeholder` attribute on the element\n\u003c5\u003e `hasAttribute` asserts that the value of the `placeholder` attribute is `Email`\n\u003c6\u003e `hasAttribute` asserts that the value of the `placeholder` attribute is `Email` using a hamcrest matcher, you could also use `containsString` for example.\n\nFor more examples take a look at the https://github.com/1and1/jsoup-hamcrest/blob/master/src/test/java/net/oneandone/jsoup/hamcrest/AllMatcherHappyTest.java[AllMatcherHappyTest]\nor https://github.com/1and1/jsoup-hamcrest/blob/master/src/test/java/net/oneandone/jsoup/hamcrest/FluentExampleTest.java[FluentExampleTest] to see usage examples.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1and1%2Fjsoup-hamcrest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1and1%2Fjsoup-hamcrest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1and1%2Fjsoup-hamcrest/lists"}