Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#3: implement component rules C3 + C4 - violations #30

Draft
wants to merge 32 commits into
base: master
Choose a base branch
from

Conversation

vlad961
Copy link
Contributor

@vlad961 vlad961 commented Mar 6, 2023

#3
DO NOT MERGE.
This fork branch contains classes demonstrating archunit component rules violations:
Namely C3 and C4 violations.

vlad961 and others added 20 commits February 21, 2023 10:59
Business architecture definition of dependencies test.
Components service layers should not depend on each other.
Added a more concise error message.
Deleted C2 rule since it is obsolete. It will be covered by devonfw-sample#21.
Refactoring by automatic code-formatting of devonfw-ide.
Minor refactoring.
Changed ArchCondition to final.
Renamed boolean dependencyAllowed to isAllowedDependency.
…entTask.java

Uncommented the dependency towards task.dataaccess layer from componentb.service.
It is useful to note the violation but the error message resolved by our layer test might be unexpected when checking for component tests.
@vlad961 vlad961 closed this Mar 6, 2023
HOTFIX general component use.

Co-Authored-By: NicolasVanBellen <[email protected]>
@vlad961 vlad961 reopened this Mar 6, 2023
vlad961 and others added 7 commits March 13, 2023 14:17
@NicolasVanBellen
Adjusted component rules C3-C7 to use the newly introduced PackageStructure type.

Co-Authored-By: NicolasVanBellen <[email protected]>
Updated PackageStructure.java:
- Added a projects architecture DEFAULT_COMPONENT field.
- Added a isComponentGeneral() getter.

Updated ComponentRuleTest.java:
- Reimplemented C3 and C6 using a custom ArchCondition + PackageStructure
- Resolved all review annotation of @hohwille

Co-Authored-By: NicolasVanBellen <[email protected]>
hohwille and others added 4 commits March 20, 2023 10:14
Reworked component rules according to recent review.
- added DescribedPredicates
- added composeViolationMessage method
- added test for general component
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants