Use untilAsserted with AssertJ instead of until with a boolean condition
MSALReplace Awaitility until(() -> condition) with untilAsserted(() -> assertThat(...)) so that a timeout reports the actual and expected values rather than just that the condition was not fulfilled. Handles equals, == and != on primitives or null, size() == n, isEmpty() and contains(...), and only applies when AssertJ is on the classpath.
org. openrewrite. java. testing. awaitility. AwaitilityUntilAssertedmod run . --recipe= org. openrewrite. java. testing. awaitility. AwaitilityUntilAssertedInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.