{"id":20604180,"url":"https://github.com/assertj/assertj-assertions-generator-maven-plugin","last_synced_at":"2025-09-08T00:37:21.066Z","repository":{"id":7441528,"uuid":"8782239","full_name":"assertj/assertj-assertions-generator-maven-plugin","owner":"assertj","description":"A maven plugin to generate assertions for your custom types","archived":false,"fork":false,"pushed_at":"2023-08-17T13:07:12.000Z","size":182,"stargazers_count":28,"open_issues_count":30,"forks_count":25,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-07-30T18:40:37.478Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/assertj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"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":"2013-03-14T18:22:33.000Z","updated_at":"2024-08-09T13:27:06.000Z","dependencies_parsed_at":"2024-11-16T09:32:42.504Z","dependency_job_id":null,"html_url":"https://github.com/assertj/assertj-assertions-generator-maven-plugin","commit_stats":null,"previous_names":["joel-costigliola/assertj-assertions-generator-maven-plugin"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/assertj/assertj-assertions-generator-maven-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assertj%2Fassertj-assertions-generator-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assertj%2Fassertj-assertions-generator-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assertj%2Fassertj-assertions-generator-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assertj%2Fassertj-assertions-generator-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/assertj","download_url":"https://codeload.github.com/assertj/assertj-assertions-generator-maven-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assertj%2Fassertj-assertions-generator-maven-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274117488,"owners_count":25225102,"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-07T02:00:09.463Z","response_time":67,"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":[],"created_at":"2024-11-16T09:21:21.465Z","updated_at":"2025-09-08T00:37:21.043Z","avatar_url":"https://github.com/assertj.png","language":"Java","readme":"Maven plugin to generate AssertJ assertions \n==\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.assertj/assertj-assertions-generator-maven-plugin/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.assertj/assertj-assertions-generator-maven-plugin)\n\n## Overview \n\nThis plugin can generate [AssertJ assertions](https://github.com/joel-costigliola/assertj-core) for your own classes via maven (it is based on [assertj-assertions-generator](https://github.com/joel-costigliola/assertj-assertions-generator)).\n\nLet's say that you have a `Player` class with `name` and `team` attributes, the plugin is able to create a `PlayerAssert` assertions class with `hasName` and `hasTeam` assertions, to write code like :\n\n```java\nassertThat(mvp).hasName(\"Lebron James\").hasTeam(\"Miami Heat\");\n```\n\nThe plugin can be launched with command `mvn generate-test-sources` (or simply `mvn test`) or with any IDE that supports maven.\nBy default, it generates the assertions source files in `target/generated-test-sources/assertions` as per maven convention (but this can be changed - see below).\n\n\n**Example of plugin execution:**\n\n```\n====================================\nAssertJ assertions generation report\n====================================\n\n--- Generator input parameters ---\n\nGenerating AssertJ assertions for classes in following packages and subpackages:\n- org.assertj.examples.data\n\n--- Generator results ---\n\nDirectory where custom assertions files have been generated :\n- /home/joe/assertj/assertj-examples/target/generated-test-sources/assertj-assertions\n\nCustom assertions files generated :\n- TeamAssert.java\n- BasketBallPlayerAssert.java\n- EmployeeAssert.java\n- NameAssert.java\n- MagicalAssert.java\n- PersonAssert.java\n- RaceAssert.java\n- GameServiceAssert.java\n- MansionAssert.java\n- TitleAssert.java\n- AlignmentAssert.java\n- TolkienCharacterAssert.java\n- RingAssert.java\n- MovieAssert.java\n- TeamManagerAssert.java\n\nAssertions entry point class has been generated in file:\n- /home/joe/assertj/assertj-examples/target/generated-test-sources/assertj-assertions/org/assertj/examples/data/Assertions.java\n```\n\n## Documentation\n\nPlease have a look at the complete documentation in [**assertj.org assertions generator section**](http://joel-costigliola.github.io/assertj/assertj-assertions-generator-maven-plugin.html), including a [**quickstart guide**](http://joel-costigliola.github.io/assertj/assertj-assertions-generator-maven-plugin.html#quickstart).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassertj%2Fassertj-assertions-generator-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fassertj%2Fassertj-assertions-generator-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassertj%2Fassertj-assertions-generator-maven-plugin/lists"}