feat: add reverse engg with example project#23
Merged
paul58914080 merged 11 commits intomainfrom Aug 3, 2025
Merged
Conversation
…ld if there is a diff
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces reverse engineering functionality by adding an example project alongside comprehensive template generation capabilities. It creates a structured approach for transforming concrete example code into reusable cookiecutter templates.
- Adds a complete example Java/Spring Boot project with hexagonal architecture
- Implements automated reverse engineering script to convert example to template
- Introduces code formatting, mutation testing, and GitHub Actions CI/CD workflows
Reviewed Changes
Copilot reviewed 64 out of 65 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| {{cookiecutter.app_name}}/rest-adapter/src/test/java/{{cookiecutter.package_name}}/rest/{{cookiecutter.domain_capitalized}}RestAdapterApplication.java | Removes MockBean annotation and replaces with proper test configuration |
| {{cookiecutter.app_name}}/rest-adapter/src/test/java/{{cookiecutter.package_name}}/rest/{{cookiecutter.domain_capitalized}}ResourceTest.java | Updates test to use Spring Boot 3.x MockitoBean annotation |
| {{cookiecutter.app_name}}/rest-adapter/pom.xml | Updates OpenAPI generator version to 7.14.0 |
| {{cookiecutter.app_name}}/pom.xml | Adds code formatting, git hooks, and mutation testing plugins |
| {{cookiecutter.app_name}}/domain-api/src/main/java/{{cookiecutter.package_name}}/domain/port/Request{{cookiecutter.domain_capitalized}}.java | Renames method from get{{cookiecutter.domain_capitalized}}s to get{{cookiecutter.domain_plural_capitalized}} |
| example/ | Complete example project demonstrating the template structure |
| generate-cookiecutter-template-from-example-project.sh | Script to convert example project to cookiecutter template |
| .github/workflows/ | CI/CD workflows for template generation and validation |
Comments suppressed due to low confidence (1)
{{cookiecutter.app_name}}/rest-adapter/src/test/java/{{cookiecutter.package_name}}/rest/{{cookiecutter.domain_capitalized}}ResourceTest.java:22
- The import
org.springframework.test.context.bean.override.mockito.MockitoBeanmay not exist in Spring Boot versions earlier than 3.4.0. This annotation was introduced as part of the bean override testing support. Consider verifying the Spring Boot version compatibility or using the traditional@MockBeanapproach for broader compatibility.
import org.springframework.test.context.bean.override.mockito.MockitoBean;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist: