Use Duration instead of long and TimeUnit in Awaitility

MSAL

Replace 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.AwaitilityUseDuration
mod run . --recipe=org.openrewrite.java.testing.awaitility.AwaitilityUseDuration

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.