use of software.amazon.awssdk.services.dynamodb.model.GetItemResponse in project curiostack by curioswitch.
the class ArmeriaSdkHttpClientIntegrationTest method normal.
@Test
void normal() {
server.enqueue(HttpResponse.of(HttpStatus.OK));
GetItemResponse response = dynamoDbAsync.getItem(GetItemRequest.builder().tableName("test").key(ImmutableMap.of()).build()).join();
assertThat(response.sdkHttpResponse().isSuccessful()).isTrue();
AggregatedHttpRequest request = server.takeRequest().request();
assertThat(request.headers().get(HttpHeaderNames.USER_AGENT)).contains("http/ArmeriaAsync");
}
Aggregations