Complete Mockito stubs of AWS SDK v2 clients

Apache 2.0

Runs after software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2. A request builder full of argument matchers inside a stub becomes any(Request.class); stubs of doesObjectExist, doesBucketExistV2 and doesBucketExist stub the HEAD or ACL call the generated S3Compat makes, with true as a response and false as a 404; a value a v2 async client call is stubbed to return is wrapped in CompletableFuture.completedFuture; and stubs of a transfer's waitForCompletion() or isDone() complete its completionFuture().

org.openrewrite.aws.sdk.CompleteV2MockitoStubs
mod run . --recipe=org.openrewrite.aws.sdk.CompleteV2MockitoStubs

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