{"id":37016796,"url":"https://github.com/hpple/reflection-assert","last_synced_at":"2026-01-14T01:54:52.483Z","repository":{"id":47598319,"uuid":"112121863","full_name":"hpple/reflection-assert","owner":"hpple","description":"Reflection Assert for JUnit 5 \u0026 others","archived":false,"fork":false,"pushed_at":"2021-08-22T23:35:51.000Z","size":255,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2023-10-06T09:12:05.640Z","etag":null,"topics":["assert","assertions","java","junit","junit5","reflection","testing","unit-testing"],"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/hpple.png","metadata":{"files":{"readme":"README.md","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":"2017-11-26T22:29:16.000Z","updated_at":"2023-03-21T14:10:39.000Z","dependencies_parsed_at":"2022-08-18T00:22:00.784Z","dependency_job_id":null,"html_url":"https://github.com/hpple/reflection-assert","commit_stats":null,"previous_names":[],"tags_count":3,"template":null,"template_full_name":null,"purl":"pkg:github/hpple/reflection-assert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpple%2Freflection-assert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpple%2Freflection-assert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpple%2Freflection-assert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpple%2Freflection-assert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hpple","download_url":"https://codeload.github.com/hpple/reflection-assert/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hpple%2Freflection-assert/sbom","scorecard":{"id":470228,"data":{"date":"2025-08-11","repo":{"name":"github.com/hpple/reflection-assert","commit":"026a91d98fcd700ea725294e9beb210993e0d97c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"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":"Code-Review","score":0,"reason":"Found 1/28 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":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"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":"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 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-19T13:42:50.385Z","repository_id":47598319,"created_at":"2025-08-19T13:42:50.386Z","updated_at":"2025-08-19T13:42:50.386Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"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":["assert","assertions","java","junit","junit5","reflection","testing","unit-testing"],"created_at":"2026-01-14T01:54:51.772Z","updated_at":"2026-01-14T01:54:52.477Z","avatar_url":"https://github.com/hpple.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Reflection Assert\n=======\n\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.hpple.reflection-assert/reflection-assert.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.hpple.reflection-assert/reflection-assert/)\n[![Build Status](https://app.travis-ci.com/hpple/reflection-assert.svg?branch=master)](https://app.travis-ci.com/github/hpple/reflection-assert)\n\nFork of reflection assert from Unitils (http://www.unitils.org) compatible with JUnit 5 \u0026 other testing tools that support [opentest4j](https://github.com/ota4j-team/opentest4j).\n\nUsage\n----------------\n#### reflection-assert\nAssert that two objects are equal using reflection for field-by-field comparision:\n\n```\nassertReflectiveThat(actual).isEqualTo(expected);\n```\nSame, but ignoring order for collections:\n\n```\nassertLenientThat(actual).isEqualTo(expected);\n```\nOr assert that two objects are not equal providing custom message:\n```\nassertReflective().withMessage(\"message\").that(actual).isNotEqualTo(unexpected);\n```\n\nA report for a failed assertion will look like:\n\n```\nExpected: User\u003cname=\"John\", title=\"CTO\", address=Address\u003ccity=\"NY\", street=\"2th\"\u003e\u003e\n  Actual: User\u003cname=\"John\", title=\"Officer\", address=Address\u003ccity=\"NY\", street=\"1th\"\u003e\u003e\n\n--- Found following differences ---\naddress.street: expected: \"2th\", actual: \"1th\"\ntitle: expected: \"CTO\", actual: \"Officer\"\n\n--- Difference detail tree ---\n expected: User\u003cname=\"John\", title=\"CTO\", address=Address\u003ccity=\"NY\", street=\"2th\"\u003e\u003e\n   actual: User\u003cname=\"John\", title=\"Officer\", address=Address\u003ccity=\"NY\", street=\"1th\"\u003e\u003e\n\naddress expected: Address\u003ccity=\"NY\", street=\"2th\"\u003e\naddress   actual: Address\u003ccity=\"NY\", street=\"1th\"\u003e\n\naddress.street expected: \"2th\"\naddress.street   actual: \"1th\"\n\ntitle expected: \"CTO\"\ntitle   actual: \"Officer\"\n```\n\n#### reflection-assert-vintage\nProvides reflection assertions in conformance with vintage Unitils API for smooth migration.\n\nYou may treat this module as a drop-in replacement for Unitils if the reflection assert was the only package used from Unitils in your system.\n\n#### reflection-comparator\nAdditionally, you may want to compare two objects reflectively out of the test scope without getting dependency on JUnit and other test-related libs. \nOr maybe just get the difference report without any assertions involved.\n\nYou may achieve it by depending on this module only \u0026 directly using ReflectionComparator that could be obtained with opt-in leniency modes:\n```\nDifference diff = ReflectionComparatorFactory.createReflectionComparator().getDifference(a, b)\n```\n```\nReflectionComparatorFactory.createReflectionComparator(LENIENT_ORDER, LENIENT_DATES).isEqual(a, b)\n```\nReports could be generated in the same format as for assertions:\n```\nnew DefaultDifferenceReport().createReport(difference)\n```  \n\nDependency\n----------------\nReleases are available in [Maven Central](https://repo1.maven.org/maven2/com/github/hpple/reflection-assert).\n\nJust add the dependency:\n\n#### Gradle\n##### reflection-assert\n```gradle\ntestCompile 'com.github.hpple.reflection-assert:reflection-assert:0.3'\n```\n##### reflection-assert-vintage\n```gradle\ntestCompile 'com.github.hpple.reflection-assert:reflection-assert-vintage:0.3'\n```\n##### reflection-comparator\n```gradle\ncompile 'com.github.hpple.reflection-assert:reflection-comparator:0.3'\n```\nor\n```gradle\ntestCompile 'com.github.hpple.reflection-assert:reflection-comparator:0.3'\n```\n\n#### Maven\n##### reflection-assert\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.hpple.reflection-assert\u003c/groupId\u003e\n    \u003cartifactId\u003ereflection-assert\u003c/artifactId\u003e\n    \u003cversion\u003e0.3\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n##### reflection-assert-vintage\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.hpple.reflection-assert\u003c/groupId\u003e\n    \u003cartifactId\u003ereflection-assert-vintage\u003c/artifactId\u003e\n    \u003cversion\u003e0.3\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n##### reflection-comparator\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.hpple.reflection-assert\u003c/groupId\u003e\n    \u003cartifactId\u003ereflection-comparator\u003c/artifactId\u003e\n    \u003cversion\u003e0.3\u003c/version\u003e\n\u003c/dependency\u003e\n```\nor\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.hpple.reflection-assert\u003c/groupId\u003e\n    \u003cartifactId\u003ereflection-comparator\u003c/artifactId\u003e\n    \u003cversion\u003e0.3\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpple%2Freflection-assert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhpple%2Freflection-assert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhpple%2Freflection-assert/lists"}