-
Notifications
You must be signed in to change notification settings - Fork 325
Open
Description
I'd like to write a test for
<no non-private Methods should "depend" on a specific (dangerous) class>
After writing lots of DescribedPredicates I noticed that noClasses().should().dependOnClassesThat(). ... already does NEARLY what I need but is too all-encompassing.
Internally everything is there Dependency.tryCreateFromReturnType and friends are all there - just not public api.
Therefore I'd like to propose exposing something like
noMethods().should().dependOnArgumentsThat(). ... // just the arguments
.orShould().dependOnReturnTypesThat()... // just the return type
.orShould().accessClassesThat() // just access within the method
.orShould().dependOnClassesThat() // arguments + return type + access within the methodStrohgelaender