@Test void s3Client() { AmazonS3 amazonS3 = commonBeans.amazonS3(); S3Client s3Client = new S3Client(amazonS3, dryRunEnabled); S3Client beansS3Client = commonBeans.s3Client(amazonS3, dryRunEnabled); assertThat(s3Client).isEqualToComparingFieldByField(beansS3Client); }
@Bean public S3Client s3Client(AmazonS3 amazonS3, @Value("${properties.dry-run-enabled}") boolean dryRunEnabled) { return new S3Client(amazonS3, dryRunEnabled); }
CommonBeans { @Bean public S3Client s3Client(AmazonS3 amazonS3, @Value("${properties.dry-run-enabled}") boolean dryRunEnabled) { return new S3Client(amazonS3, dryRunEnabled); } }
CommonBeans { @Bean public S3Client s3Client(AmazonS3 amazonS3, @Value("${properties.dry-run-enabled}") boolean dryRunEnabled) { return new S3Client(amazonS3, dryRunEnabled); }  }
CommonBeans { @Bean public S3Client s3Client(AmazonS3 amazonS3, @Value("${properties.dry-run-enabled}") boolean dryRunEnabled) { return new S3Client(amazonS3, dryRunEnabled); }  @Bean @Profile("default") AmazonS3 amazonS3(); @Bean S3Client s3Client(AmazonS3 amazonS3, @Value("${properties.dry-run-enabled}") boolean dryRunEnabled); }
CommonBeans { @Bean public S3Client s3Client(AmazonS3 amazonS3, @Value("${properties.dry-run-enabled}") boolean dryRunEnabled) { return new S3Client(amazonS3, dryRunEnabled); }  @Bean @Profile("default") AmazonS3 amazonS3(); @Bean S3Client s3Client(AmazonS3 amazonS3, @Value("${properties.dry-run-enabled}") boolean dryRunEnabled);  }