test(core): add architecture and project guardrail unit tests#73
Merged
evebrnd merged 1 commit intoJun 19, 2026
Merged
Conversation
Code Coverage OverviewLanguages: Java Java / code-coverage/jacocoThe overall coverage in the branch is 89%. Coverage data for the branch is not yet available. Show a code coverage summary of the most covered files.
Updated |
|
RVANDO12
approved these changes
Jun 19, 2026
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.



PR Description
What this PR Provides
Integrate ArchUnit unit tests to validate our project architecture and the conventions we established.
Hexagonal constraints
DOMAIN_MUST_NOT_DEPEND_ON_INFRASTRUCTUREinfrastructure.DOMAIN_MUST_NOT_DEPEND_ON_FORBIDDEN_TECHNOLOGYDOMAIN_MUST_NOT_DEPEND_ON_JPA_ENTITIES*JpaEntitypersistence types.LAYER_DEPENDENCIES_POINT_INWARDinfrastructuremay depend ondomain, never the reverse.PORTS_MUST_BE_INTERFACESdomain.portis an interface.PORT_NAMED_CLASSES_MUST_LIVE_IN_PORT_PACKAGE*Portcontract lives indomain.port.PORTS_IMPLEMENTED_ONLY_IN_ADAPTERSinfrastructure.adaptersclass.DTOS_RESIDE_IN_API_DTO_PACKAGE*Dto,*DtoIn,*DtoOutlives inadapters.api.dto.CONTROLLERS_MUST_NOT_ACCESS_PERSISTENCETRANSACTIONAL_NOT_ON_CONTROLLERS@Transactional.TRANSACTIONAL_METHODS_NOT_ON_CONTROLLERS@Transactional.Maintainability conventions
FREE_OF_CYCLESDOMAIN_FREE_OF_CYCLESdomainsub-packages.ADAPTERS_FREE_OF_CYCLESinfrastructure.adapterssub-packages.NO_FIELD_INJECTION@Value/setter injection.NO_STANDARD_STREAMSSystem.out/System.err/printStackTrace; use the SLF4J logger.NO_JAVA_UTIL_LOGGINGjava.util.logging; use SLF4J.DOMAIN_MUST_NOT_LOGRUNTIME_EXCEPTIONS_ARE_NAMED_EXCEPTION*Exception.EXCEPTIONS_LIVE_IN_DOMAIN_EXCEPTION_PACKAGE*Exceptionlives indomain.exception.SERVICES_LIVE_IN_DOMAIN_SERVICE_PACKAGE*Servicelives indomain.service.CONTROLLERS_LIVE_IN_API_CONTROLLER_PACKAGE*Controllerlives inadapters.api.controller.MAPPERS_LIVE_IN_MAPPER_PACKAGE*Mapperlives in amapperpackage.Review
The reviewer must double-check these points:
How to test
Breaking changes
N/A