assertj / assertj/assertj

Improve 'Expecting code to raise a throwable' when lambda returns a value

Offen
#3,043 4 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @scordio Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
2.8k
Forks
788
Ø Merge
14 Std. 57 Min.
Gemergte PRs (30 T.)
36

Beschreibung

`assertThatThrownBy` throws "Expecting code to raise a throwable" when called code doesn't throw.
When test assertion fails, it's tempting to know what did the code do instead.

Enhance "Expecting code to raise a throwable" to mention produced value in case when the lambda is a producer.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.