add haveDependenciesThat condition to ArchConditions#1580
add haveDependenciesThat condition to ArchConditions#1580wakingrufus wants to merge 1 commit intoTNG:mainfrom
Conversation
d66d740 to
1593ed1
Compare
StefanGraeber
left a comment
There was a problem hiding this comment.
Looks good to me :)
1593ed1 to
75d0251
Compare
|
Thanks! I rebased. Just need approval for workflows |
StefanGraeber
left a comment
There was a problem hiding this comment.
I guess you still need the signed-off line in the commit message.
otherwise this change is ready to submit
|
Ah yes, and please squash the two commits. Thank you! |
Signed-off-by: John Burns <wakingrufus@gmail.com> Update archunit/src/test/java/com/tngtech/archunit/lang/conditions/ArchConditionsTest.java Co-authored-by: Manfred Hanke <Manfred.Hanke@tngtech.com>
2f1a9e9 to
da88571
Compare
rebased and squashed. Thanks again! |
hankem
left a comment
There was a problem hiding this comment.
Thank you for your contribution!
Just one last thought from my side, as naming things is hard...
| } | ||
|
|
||
| @PublicAPI(usage = ACCESS) | ||
| public static ArchCondition<JavaClass> haveAnyDependenciesThat(DescribedPredicate<? super Dependency> predicate) { |
There was a problem hiding this comment.
I wonder whether there can be any confusion about the name. Will it be clear that haveAnyDependenciesThat(…) means "have any direct dependencies that …" as opposed to "have any transitive dependencies that …"?
there is not a good way to craft such a condition with current Public APIs
the use case I want this for is:
where
resideInSamePackage()is a DescribedPredicate which requires comparing the target and the owner in the same condition