{"id":19032748,"url":"https://github.com/joutvhu/model-tester","last_synced_at":"2025-09-03T21:46:07.855Z","repository":{"id":142466368,"uuid":"613253110","full_name":"joutvhu/model-tester","owner":"joutvhu","description":"Model Tester is a utility for automatically testing model classes.","archived":false,"fork":false,"pushed_at":"2023-07-28T07:00:38.000Z","size":128,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T20:36:48.119Z","etag":null,"topics":["model","model-testing","tester"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joutvhu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-13T08:00:17.000Z","updated_at":"2023-03-13T18:56:45.000Z","dependencies_parsed_at":"2023-08-18T02:21:40.477Z","dependency_job_id":null,"html_url":"https://github.com/joutvhu/model-tester","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/joutvhu/model-tester","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fmodel-tester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fmodel-tester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fmodel-tester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fmodel-tester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joutvhu","download_url":"https://codeload.github.com/joutvhu/model-tester/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fmodel-tester/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273517037,"owners_count":25119765,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"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":["model","model-testing","tester"],"created_at":"2024-11-08T21:30:47.147Z","updated_at":"2025-09-03T21:46:07.813Z","avatar_url":"https://github.com/joutvhu.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Model Tester\n\nModel Tester is a utility for automatically testing model classes.\n\n## Installation\n\n- If you are using Gradle just add the following dependency to your `build.gradle`.\n\n```groovy\ntestImplementation \"com.github.joutvhu:model-tester:1.0.5\"\n```\n\n- Or add the following dependency to your `pom.xml` if you are using Maven.\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.joutvhu\u003c/groupId\u003e\n    \u003cartifactId\u003emodel-tester\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.5\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\n## How to use?\n\n- Provide model class to be used for testing.\n- Set up test options.\n- Use method `test()` or `testAndThrows()` to execute the tester.\n\n```java\n\npublic class UserTest {\n    @Test\n    public void test_all() {\n        Assertions.assertTrue(ModelTester.allOf(User.class).test());\n    }\n\n    @Test\n    public void test_and_throws() {\n        ModelTester.allOf(User.class).testAndThrows();\n    }\n\n    @Test\n    public void test_safe() {\n        ModelTester.safeOf(User.class).testAndThrows();\n    }\n\n    @Test\n    public void test_custom() {\n        ModelTester.of(User.class)\n                .constructors()\n                .exclude(\"getId\", \"setId\")\n                .equalsMethod()\n                .hashCodeMethod()\n                .toStringMethod()\n                .testAndThrows();\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoutvhu%2Fmodel-tester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoutvhu%2Fmodel-tester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoutvhu%2Fmodel-tester/lists"}