On Mon, Mar 30, 2020 at 5:58 AM Robert Munteanu <[email protected]> wrote:

> Hi Christian,
>
> On Mon, 2020-03-30 at 11:38 +0200, Christian Schneider wrote:
> > In some of our tests we use Awaitility as the expected result will
> > happen
> > asynchronously.
> > The code looks like:
> >
> > await().until(checker::isAvailable);
> >
> >
> > This actually is like an assertion but sonar then complains that the
> > test
> > does not assert anything.
> >
> > Is there a way to let sonar know that using an await is also a good
> > assertion?
>

Yes. See https://jira.sonarsource.com/browse/SONARJAVA-2927.

Cheers,
Justin


>
> I am not aware of any specific way of doing this. Maybe a posting on
>
>   https://community.sonarsource.com/c/help/sc
>
> would get you some help?
>
> Thanks,
> Robert
>
> >
> > See
> >
> https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-distribution-journal&issues=AWvhm55N9kO6n_b9qo1U&open=AWvhm55N9kO6n_b9qo1U
> >
> >
> > --
>
>

Reply via email to