From 86880b31377d49c89018a812be602b5f742d23fa Mon Sep 17 00:00:00 2001 From: laya-2002 <madavaramlaya@gmail.com> Date: Tue, 17 Dec 2024 17:47:52 +0530 Subject: [PATCH] Task 1 completed --- pom.xml | 42 +++++++++++++++++++ .../java/com/jpmc/midascore/TaskOneTests.java | 8 ++++ 2 files changed, 50 insertions(+) diff --git a/pom.xml b/pom.xml index d1dedfe..0ff960c 100644 --- a/pom.xml +++ b/pom.xml @@ -17,6 +17,48 @@ <java.version>17</java.version> </properties> <dependencies> + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-data-jpa</artifactId> + <version>3.2.5</version> + </dependency> + + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-web</artifactId> + <version>3.2.5</version> + </dependency> + + <dependency> + <groupId>org.springframework.kafka</groupId> + <artifactId>spring-kafka</artifactId> + <version>3.1.4</version> + </dependency> + + <dependency> + <groupId>com.h2database</groupId> + <artifactId>h2</artifactId> + <version>2.2.224</version> + </dependency> + + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-test</artifactId> + <version>3.2.5</version> + </dependency> + + <dependency> + <groupId>org.springframework.kafka</groupId> + <artifactId>spring-kafka-test</artifactId> + <version>3.1.4</version> + </dependency> + + <dependency> + <groupId>org.testcontainers</groupId> + <artifactId>kafka</artifactId> + <version>1.19.1</version> + </dependency> + </dependencies> <build> diff --git a/src/test/java/com/jpmc/midascore/TaskOneTests.java b/src/test/java/com/jpmc/midascore/TaskOneTests.java index 4f5a384..0fba3ab 100644 --- a/src/test/java/com/jpmc/midascore/TaskOneTests.java +++ b/src/test/java/com/jpmc/midascore/TaskOneTests.java @@ -4,11 +4,19 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.context.annotation.Configuration; @SpringBootTest class TaskOneTests { static final Logger logger = LoggerFactory.getLogger(TaskOneTests.class); + @Configuration + static class Config { + Config() { + System.out.println("Config"); + } + } + @Test void task_one_verifier() throws InterruptedException { Thread.sleep(2000);