google / google/truth

Document some AssertJ equivalents, especially for Iterable assertions

Open
#681 1 comment 0 reactions 0 assignees View on GitHub
P3 type=documentation type=enhancement
Dominant language
Java
Stars
2.8k
Forks
275
Avg merge
7m
Merged PRs (30d)
4

Description

AssertJ's [`AbstractIterableAssert`](https://joel-costigliola.github.io/assertj/core/api/org/assertj/core/api/AbstractIterableAssert.html) is large. We don't have an equivalent to every last assertion (and this is [sometimes intentional](https://truth.dev/comparison#assertion-count)), but for cases in which we _do_ have an equivalent, we could help prospective users / migrating users / users with an AssertJ background by providing a mapping between the two.

A lot of advanced assertions would use [Fuzzy Truth](https://truth.dev/fuzzy). For example, AssertJ assertions that use `areAtLeastOne(condition)` and `extractingResultOf(method)` would often use `comparingElementsUsing`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.