assertj / assertj-assertions-generator

Custom assertions generator
https://joel-costigliola.github.io/assertj/assertj-assertions-generator.html
Apache License 2.0
62 stars 42 forks source link

Combination of asserts #126

Open JimiJones opened 6 years ago

JimiJones commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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