From 5c2347b75dcf942eee390e0b0bfff5bbad601ea4 Mon Sep 17 00:00:00 2001 From: Maciej Walkowiak Date: Wed, 18 Sep 2024 07:21:00 +0200 Subject: [PATCH] polish --- .../SecretsManagerConfigDataLoaderIntegrationTests.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-cloud-aws-autoconfigure/src/test/java/io/awspring/cloud/autoconfigure/config/secretsmanager/SecretsManagerConfigDataLoaderIntegrationTests.java b/spring-cloud-aws-autoconfigure/src/test/java/io/awspring/cloud/autoconfigure/config/secretsmanager/SecretsManagerConfigDataLoaderIntegrationTests.java index 37b41bd30..aa5760364 100644 --- a/spring-cloud-aws-autoconfigure/src/test/java/io/awspring/cloud/autoconfigure/config/secretsmanager/SecretsManagerConfigDataLoaderIntegrationTests.java +++ b/spring-cloud-aws-autoconfigure/src/test/java/io/awspring/cloud/autoconfigure/config/secretsmanager/SecretsManagerConfigDataLoaderIntegrationTests.java @@ -155,9 +155,8 @@ void resolvesPropertyFromSecretsManager_SecretBinary() { try (ConfigurableApplicationContext context = runApplication(application, "aws-secretsmanager:/blob/byte_certificate")) { - byte[] byteCertificates = context.getEnvironment().getProperty("byte_certificate", byte[].class); - System.out.println(new String(byteCertificates, StandardCharsets.UTF_8)); - assertThat(byteCertificates).isEqualTo("My certificate".getBytes(StandardCharsets.UTF_8)); + assertThat(context.getEnvironment().getProperty("byte_certificate", byte[].class)) + .isEqualTo("My certificate".getBytes(StandardCharsets.UTF_8)); } }