From 62c9128efc6458dd9b1f124531f819b7953470f6 Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Fri, 27 Dec 2024 08:34:44 +0000 Subject: [PATCH] fix : compilation issue --- .../learning/aws/spring/TestKinesisProducerApplication.java | 6 ++---- .../learning/aws/spring/common/AbstractIntegrationTest.java | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/aws-kinesis-project/producer/src/test/java/com/learning/aws/spring/TestKinesisProducerApplication.java b/aws-kinesis-project/producer/src/test/java/com/learning/aws/spring/TestKinesisProducerApplication.java index 7798e18a..15989783 100644 --- a/aws-kinesis-project/producer/src/test/java/com/learning/aws/spring/TestKinesisProducerApplication.java +++ b/aws-kinesis-project/producer/src/test/java/com/learning/aws/spring/TestKinesisProducerApplication.java @@ -2,6 +2,7 @@ import static org.testcontainers.containers.localstack.LocalStackContainer.Service.KINESIS; +import com.learning.aws.spring.common.ContainerConfig; import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicReference; @@ -10,16 +11,13 @@ import org.springframework.boot.test.context.TestConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.messaging.Message; -import org.springframework.test.context.DynamicPropertyRegistry; import org.testcontainers.containers.localstack.LocalStackContainer; -import org.testcontainers.utility.DockerImageName; import software.amazon.awssdk.auth.credentials.AwsBasicCredentials; import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider; import software.amazon.awssdk.regions.Region; import software.amazon.awssdk.services.kinesis.KinesisAsyncClient; -import com.learning.aws.spring.common.ContainerConfig; -import org.springframework.boot.SpringApplication; +@TestConfiguration(proxyBeanMethods = false) public class TestKinesisProducerApplication { @Bean diff --git a/aws-kinesis-project/producer/src/test/java/com/learning/aws/spring/common/AbstractIntegrationTest.java b/aws-kinesis-project/producer/src/test/java/com/learning/aws/spring/common/AbstractIntegrationTest.java index 8bbbec1f..1f098754 100644 --- a/aws-kinesis-project/producer/src/test/java/com/learning/aws/spring/common/AbstractIntegrationTest.java +++ b/aws-kinesis-project/producer/src/test/java/com/learning/aws/spring/common/AbstractIntegrationTest.java @@ -4,7 +4,6 @@ import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT; import com.fasterxml.jackson.databind.ObjectMapper; -import com.learning.aws.spring.TestKinesisProducerApplication; import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicReference;