-
Notifications
You must be signed in to change notification settings - Fork 288
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
ArchUnits - get name of lambda method #1319
Comments
I don't think what you want is completely possible, cause ArchUnit doesn't track any syntax tree. I.e. if one call is nested into another call in a lambda or something like that isn't really part of the available information. That being said, what you can test is that the origin of each call of a service has to be a lambda and you could also test that your
I assumed something like this:
You'd probably have to adjust it to your use case... |
Hi,
Is it possible to do it in any way with ArchUnits ?
I have in one module classes whose names end with "Service" I would like to check if every public method from this is wrapped in different classes.
into something like this logger.loginfo("name of method").call(() → my service method) in some other method? Also, Logger class is in a different module.
So I would like to have something like check if my service method is called in the call method by loginfo.
The text was updated successfully, but these errors were encountered: