{"id":16019824,"url":"https://github.com/fabasoad/pojo","last_synced_at":"2025-04-10T01:06:16.950Z","repository":{"id":38240072,"uuid":"393912897","full_name":"fabasoad/pojo","owner":"fabasoad","description":"POJO testing library that help you to avoid boilerplate code to test your POJO classes","archived":false,"fork":false,"pushed_at":"2025-04-03T22:03:22.000Z","size":467,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T01:06:10.013Z","etag":null,"topics":["java","pojo","pojo-tester","pojo-testing"],"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/fabasoad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://www.bitcoinqrcodemaker.com/?style=bitcoin\u0026address=145HwyQAcv4vrzUumJhu7nWGAVBysX9jJH\u0026prefix=on","https://paypal.me/fabasoad"],"github":["fabasoad"],"ko_fi":"fabasoad","liberapay":"fabasoad"}},"created_at":"2021-08-08T09:11:59.000Z","updated_at":"2025-04-03T22:03:25.000Z","dependencies_parsed_at":"2023-11-15T07:30:40.680Z","dependency_job_id":"c8418ef8-72e0-48f8-8f66-933d68ee3323","html_url":"https://github.com/fabasoad/pojo","commit_stats":{"total_commits":72,"total_committers":4,"mean_commits":18.0,"dds":"0.36111111111111116","last_synced_commit":"b0ce67a32e1bd9372da525583644acd436e16e5b"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabasoad%2Fpojo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabasoad%2Fpojo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabasoad%2Fpojo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabasoad%2Fpojo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabasoad","download_url":"https://codeload.github.com/fabasoad/pojo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137888,"owners_count":21053775,"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","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","pojo","pojo-tester","pojo-testing"],"created_at":"2024-10-08T17:05:34.136Z","updated_at":"2025-04-10T01:06:16.920Z","avatar_url":"https://github.com/fabasoad.png","language":"Java","funding_links":["https://www.bitcoinqrcodemaker.com/?style=bitcoin\u0026address=145HwyQAcv4vrzUumJhu7nWGAVBysX9jJH\u0026prefix=on","https://paypal.me/fabasoad","https://github.com/sponsors/fabasoad","https://ko-fi.com/fabasoad","https://liberapay.com/fabasoad"],"categories":[],"sub_categories":[],"readme":"# POJO testing library\n\n[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://stand-with-ukraine.pp.ua)\n![GitHub release](https://img.shields.io/github/v/release/fabasoad/pojo?include_prereleases)\n![unit-tests](https://github.com/fabasoad/pojo/actions/workflows/unit-tests.yml/badge.svg)\n![security](https://github.com/fabasoad/pojo/actions/workflows/security.yml/badge.svg)\n![linting](https://github.com/fabasoad/pojo/actions/workflows/linting.yml/badge.svg)\n\n## Import\n\n1. Add [GitHub Packages](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry#authenticating-to-github-packages)\n   maven server to `pom.xml`\n2. Import `pojo` dependency.\n\n### Maven\n\n[Here](https://github.com/fabasoad/pojo/packages/931918) is an example on how to\nuse it with maven.\n\n## Examples\n\n### Java\n\n```java\npublic class PojoTest {\n  // The package to test\n  private static final String PACKAGE_NAME = \"io.fabasoad.pojo\";\n\n  @Test\n  public void testPojoStructureAndBehavior() {\n    final PojoValidator validator = PojoValidatorBuilder.create(PACKAGE_NAME)\n        .with(new GettersTester(new GettersMustExistRule()))\n        .with(new FieldsTester(\n            new FieldsMustBeFinalRule(),\n            new FieldsMustBePrivateRule()))\n        .build();\n\n    validator.validate();\n  }\n}\n```\n\n### Groovy\n\n```groovy\nclass PojoSpec extends Specification {\n  // The package to test\n  def PACKAGE_NAME = \"io.fabasoad.pojo\";\n\n  def \"Getters and fields must follow the rules\"() {\n    given:\n    def builder = PojoValidatorBuilder.create(PACKAGE_NAME)\n\n    when:\n    def validator = builder\n        .with(new GettersTester(new GettersMustExistRule()))\n        .with(new FieldsTester(\n            new FieldsMustBeFinalRule(),\n            new FieldsMustBePrivateRule()))\n        .build()\n\n    then:\n    validator.validate()\n  }\n}\n```\n\n## Contributions\n\n![Alt](https://repobeats.axiom.co/api/embed/7a892bda2ac0a8dbfc492b849fb9030a6ed37ea4.svg \"Repobeats analytics image\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabasoad%2Fpojo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabasoad%2Fpojo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabasoad%2Fpojo/lists"}