snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Add assertThrows method to UniAsserter #378

Closed snowdrop-bot closed 3 years ago

snowdrop-bot commented 3 years ago

Description

I tried using @RunOnVertxContext and UniAsserter with an old test that was based on JUnit's assertThrows but it seems UniAsserter does not offer a method to perform that kind of assertion.

Implementation ideas

Mutiny has UniAssertSubscriber#assertFailedWith which almost does what I need but it does not allow assertions on the exception cause.

If UniAsserter could have an assertThrows or assertFailedWith method with the possibility to check the exception cause, that would be even better.


https://github.com/quarkusio/quarkus/issues/18778


$upstream:18778$