Skip to content
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

Combination of asserts #126

Open
JimiJones opened this issue Aug 20, 2018 · 2 comments
Open

Combination of asserts #126

JimiJones opened this issue Aug 20, 2018 · 2 comments

Comments

@JimiJones
Copy link

Hello,
I just find too restrictive the way to combine assertion or may be I missed something, for exemple I would like to write:
ObjectA isEqualToComparingFieldByFieldRecursively To ObjectB or To ObjectC
I found things like anyOf(..) but it takes Condition list which are pretty small as possibilities.
I would find more easier to have assertAny(...) taking an assertion list.

@joel-costigliola
Copy link
Member

there is no great support for combining assertions, the best you can do at the moment is use anyOf + satisfies .

Is this issue related to assertj-assertions-generator or assertj-core ?

@JimiJones
Copy link
Author

It looks like assertj-core don't provide a way to make assertj-assertions-generator able to handle that case..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants