Skip to content

Commit

Permalink
code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
usmansaleem committed Aug 1, 2023
1 parent ffbbda7 commit fe761ff
Showing 1 changed file with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,32 +58,32 @@ void cachedInstanceOfKmsClientIsReturnedForSpecifiedCredentials() {
Optional.empty());

final AwsKmsClient kmsClient_3 =
cachedAwsKmsClientFactory.createKmsClient(
AwsCredentialsProviderFactory.createAwsCredentialsProvider(
AwsAuthenticationMode.SPECIFIED,
Optional.of(
AwsCredentials.builder()
.withAccessKeyId("test")
.withSecretAccessKey("test")
.build())),
"us-east-2",
Optional.empty());
cachedAwsKmsClientFactory.createKmsClient(
AwsCredentialsProviderFactory.createAwsCredentialsProvider(
AwsAuthenticationMode.SPECIFIED,
Optional.of(
AwsCredentials.builder()
.withAccessKeyId("test")
.withSecretAccessKey("test")
.build())),
"us-east-2",
Optional.empty());

final AwsKmsClient kmsClient_4 =
cachedAwsKmsClientFactory.createKmsClient(
AwsCredentialsProviderFactory.createAwsCredentialsProvider(
AwsAuthenticationMode.SPECIFIED,
Optional.of(
AwsCredentials.builder()
.withAccessKeyId("test3")
.withSecretAccessKey("test3")
.build())),
"us-east-2",
Optional.empty());
cachedAwsKmsClientFactory.createKmsClient(
AwsCredentialsProviderFactory.createAwsCredentialsProvider(
AwsAuthenticationMode.SPECIFIED,
Optional.of(
AwsCredentials.builder()
.withAccessKeyId("test3")
.withSecretAccessKey("test3")
.build())),
"us-east-2",
Optional.empty());

assertThat(kmsClient_1).isEqualTo(kmsClient_3);
assertThat(kmsClient_2).isEqualTo(kmsClient_4);

assertThat(kmsClient_1).isNotEqualTo(kmsClient_2);
}

Expand Down

0 comments on commit fe761ff

Please sign in to comment.