Combination of asserts

Open
#126 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
32/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
testing

Research direction

Start by examining the existing anyOf(..) API and its Condition list usage, then compare it with the requested assertAny(...) taking an assertion list. Define how multiple recursive field-by-field assertions should be combined and what success and failure messages should report; done means the proposed behavior is covered by tests.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Java
Stars
72
Forks
47
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from assertj/assertj-generator

All issues in assertj/assertj-generator

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.