Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert Aws sdk 2.2 Client core tests from groovy to java #12949

Merged
merged 16 commits into from
Dec 30, 2024
Prev Previous commit
Next Next commit
rename
  • Loading branch information
jaydeluca committed Dec 22, 2024
commit 17efec73d9263bf09a72c5fbfab478bbe541b3b2
Original file line number Diff line number Diff line change
@@ -115,7 +115,7 @@ protected void configureSdkClient(SdkClientBuilder<?, ?> builder) {
"attributeOne", AttributeValue.builder().s("one").build(),
"attributeTwo", AttributeValue.builder().s("two").build());

private void executeCall(String operation, Object response)
private void validateOperationResponse(String operation, Object response)
throws ExecutionException, InterruptedException {
if (response instanceof Future) {
response = ((Future<?>) response).get();
@@ -378,7 +378,7 @@ void testSendDynamoDbRequestWithBuilderAndMockedResponse(
.build();
server.enqueue(HttpResponse.of(HttpStatus.OK, MediaType.PLAIN_TEXT_UTF_8, ""));
Object response = call.apply(client);
executeCall(operation, response);
validateOperationResponse(operation, response);
}

@ParameterizedTest
@@ -398,6 +398,6 @@ void testSendDynamoDbAsyncRequestWithBuilderAndMockedResponse(
.build();
server.enqueue(HttpResponse.of(HttpStatus.OK, MediaType.PLAIN_TEXT_UTF_8, ""));
Object response = asyncCall.apply(client);
executeCall(operation, response);
validateOperationResponse(operation, response);
}
}