Use Duration instead of long and TimeUnit in Awaitility
MSALReplace Awaitility timing calls such as atMost(5, SECONDS) with their Duration equivalent, atMost(Duration.ofSeconds(5)). The Duration overloads are more readable and make the unit impossible to confuse.
org. openrewrite. java. testing. awaitility. AwaitilityUseDurationmod run . --recipe= org. openrewrite. java. testing. awaitility. AwaitilityUseDurationInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.