Skip to content

Commit 1b3d933

Browse files
committed
Fixed subscriber-service & updated pom.xml
1 parent 46abbfb commit 1b3d933

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

Diff for: polling-publisher/pom.xml

+23-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
<properties>
4545
<java.version>21</java.version>
46-
<spring.boot.version>3.4.0</spring.boot.version>
46+
<spring.boot.version>3.2.2</spring.boot.version>
4747
</properties>
4848

4949
<dependencies>
@@ -94,6 +94,13 @@
9494
<version>3.3.2</version>
9595
</dependency>
9696

97+
<dependency>
98+
<groupId>org.springframework.kafka</groupId>
99+
<artifactId>spring-kafka-test</artifactId>
100+
<version>3.3.2</version>
101+
<scope>test</scope>
102+
</dependency>
103+
97104
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot -->
98105
<dependency>
99106
<groupId>org.springframework.boot</groupId>
@@ -106,6 +113,21 @@
106113
<artifactId>mockito-core</artifactId>
107114
<scope>test</scope>
108115
</dependency>
116+
<dependency>
117+
<groupId>org.mockito</groupId>
118+
<artifactId>mockito-inline</artifactId>
119+
<version>5.2.0</version>
120+
<scope>test</scope>
121+
</dependency>
122+
123+
<!-- https://mvnrepository.com/artifact/javax.annotation/javax.annotation-api -->
124+
<dependency>
125+
<groupId>javax.annotation</groupId>
126+
<artifactId>javax.annotation-api</artifactId>
127+
<version>1.3.2</version>
128+
</dependency>
129+
130+
109131
</dependencies>
110132

111133
<build>

Diff for: polling-publisher/subscriber-service/src/main/resources/application.yml

+1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ server:
2626

2727
spring:
2828
kafka:
29+
bootstrap-servers: localhost:9092 # Kafka broker address(es)
2930
consumer:
3031
group-id: subscriber-group

Diff for: polling-publisher/subscriber-service/src/test/java/com/iluwatar/subscriber/AppTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@
2525

2626
package com.iluwatar.subscriber;
2727

28+
import org.junit.jupiter.api.Disabled;
2829
import org.junit.jupiter.api.Test;
2930
import org.springframework.boot.test.context.SpringBootTest;
3031

3132
import static org.junit.jupiter.api.Assertions.*;
3233

3334
@SpringBootTest
34-
class AppTest {
35+
public class AppTest {
3536

3637
@Test
3738
void subscriber() {

0 commit comments

Comments
 (0)