-
Notifications
You must be signed in to change notification settings - Fork 299
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
[How to] Detect reference for field in methods #857
Comments
I think this is unfortunately still missing from the fluent API, even though it would be a nice addition! For the moment you will have to resort to add this yourself, e.g. like
I'll keep the issue open, maybe somebody wants to contribute this to the fluent API (or I'll do it once I get around to it, but no promises there about the timeline, since there are a lot of other issues I have to tackle first 😬) |
Thanks for your help. One little point to point out was However adding these kinds of support to fluent API will help myself so I can give it a try. I'm thinking of API like below if possible.
Were there any alternative that you were thinking of? |
Oh sorry, I was playing around on the branch #833 😬 Once that is merged (for ArchUnit 1.0.0rc1 😉) the method will be |
Hi, am I correct in assuming that this issue is still available? If so, I would like to work on it :) |
This adds a method to the public API of FieldsShould.java to check if a field has been accessed by methods matching a given predicate. Issue: TNG#857 Signed-off-by: Leonard Husmann <leonard.husmann@tum.de>
Issue: TNG#857 Signed-off-by: Leonard Husmann <leonard.husmann@tum.de>
This adds a method to the public API of FieldsShould.java to check if a field has been accessed by methods matching a given predicate. Issue: TNG#857 Signed-off-by: Leonard Husmann <leonard.husmann@tum.de>
Issue: TNG#857 Signed-off-by: Leonard Husmann <leonard.husmann@tum.de>
This adds a method to the public API of FieldsShould.java to check if a field has been accessed by methods matching a given predicate. Issue: TNG#857 Signed-off-by: Leonard Husmann <leonard.husmann@tum.de>
Issue: TNG#857 Signed-off-by: Leonard Husmann <leonard.husmann@tum.de>
Adds `FieldsShould.{be/notBe}AccessedByMethodsThat(predicate)` to the rules API. Issue: TNG#857 Signed-off-by: Leonard Husmann <leonard.husmann@tum.de>
Adds `FieldsShould.{be/notBe}AccessedByMethodsThat(predicate)` to the rules API. Resolves: #857
I've trying to write tests like below
or
Is there any kind of support for detecting dependency of fields in methods.
The text was updated successfully, but these errors were encountered: