Manfred Hanke
Manfred Hanke
> The report with `archRule.failOnEmptyShould = false` should list all the empty and unmatched tests Would you expect to see them on a particular logger, or would a `debug` message...
A brief intermediate result: The exception didn't occurr with ArchUnit 0.22.0, but only since 29dccfe3249ae4a45b2d4e824d7b033a0f67155c.
> i use the latest code, but still have the same problem. If I understand correctly, you don't _**still**_ have the problem, but you _**only**_ have it because you're using...
[`MembersThat.areDeclaredInClassesThat`](https://javadoc.io/doc/com.tngtech.archunit/archunit/0.14.1/com/tngtech/archunit/lang/syntax/elements/MembersThat.html#areDeclaredInClassesThat()) is used to select for which members the rule should apply. Using [`GivenMembers.that(DescribedPredicate predicate)`](https://javadoc.io/doc/com.tngtech.archunit/archunit/0.14.1/com/tngtech/archunit/lang/syntax/elements/GivenMembers.html#that(com.tngtech.archunit.base.DescribedPredicate)), you could build a custom rule that applies to methods based on their _raw¹_ return...
FYI, my initially suggested workaround that does not need the new `CodeUnitsShould.haveRawReturnTypesThat()` could look like this: ```java noMethods() .that(areRestEndpoints()) .should().haveRawReturnType(dependingOnClassesInAPackage("..domain.entity..")); ``` with ```java static DescribedPredicate dependingOnClassesInAPackage(String packageIdentifier) { PackageMatcher packageMatcher...
Thanks for your PR! Note that this repository is an autogenerated version of the latest released version of https://github.com/TNG/ArchUnit/tree/main/archunit-example (cf. https://github.com/TNG/ArchUnit-Examples/#regarding-issues), so I believe that your PR should target these...
If your CI ensures that violation stores for frozen rules are always up to date (when violations are fixed, `FreezingArchRule` [automatically reduces stored violations](https://www.archunit.org/userguide/html/000_Index.html#_freezing_arch_rules)), the history of those store files...
I don't know why `FirstRepository` violates your `LayeredArchitecture` rule with JDK 8, but not with JDK 17 (if I understood correctly). Could the constructor `FirstRepository(SecondService)` be a synthetic member that...
Would running your test suite with a JRE 7 catch such bugs?
[The `archunit.jar`](https://search.maven.org/search?q=g:com.tngtech.archunit%20a:archunit) already contains some general reusable `ArchCondition`s and `ArchRule`s in [the `com.tngtech.archunit.library` package](https://github.com/TNG/ArchUnit/tree/main/archunit/src/main/java/com/tngtech/archunit/library), see, e.g., [`DependencyRules`](https://github.com/TNG/ArchUnit/blob/main/archunit/src/main/java/com/tngtech/archunit/library/DependencyRules.java), [`GeneralCodingRules`](https://github.com/TNG/ArchUnit/blob/main/archunit/src/main/java/com/tngtech/archunit/library/GeneralCodingRules.java), [`ProxyRules`](https://github.com/TNG/ArchUnit/blob/main/archunit/src/main/java/com/tngtech/archunit/library/ProxyRules.java). If you have a specific idea how to extend those, feel...