File tree 3 files changed +26
-2
lines changed
test/java/com/iluwatar/subscriber
3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 43
43
44
44
<properties >
45
45
<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>
47
47
</properties >
48
48
49
49
<dependencies >
94
94
<version >3.3.2</version >
95
95
</dependency >
96
96
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
+
97
104
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot -->
98
105
<dependency >
99
106
<groupId >org.springframework.boot</groupId >
106
113
<artifactId >mockito-core</artifactId >
107
114
<scope >test</scope >
108
115
</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
+
109
131
</dependencies >
110
132
111
133
<build >
Original file line number Diff line number Diff line change @@ -26,5 +26,6 @@ server:
26
26
27
27
spring :
28
28
kafka :
29
+ bootstrap-servers : localhost:9092 # Kafka broker address(es)
29
30
consumer :
30
31
group-id : subscriber-group
Original file line number Diff line number Diff line change 25
25
26
26
package com .iluwatar .subscriber ;
27
27
28
+ import org .junit .jupiter .api .Disabled ;
28
29
import org .junit .jupiter .api .Test ;
29
30
import org .springframework .boot .test .context .SpringBootTest ;
30
31
31
32
import static org .junit .jupiter .api .Assertions .*;
32
33
33
34
@ SpringBootTest
34
- class AppTest {
35
+ public class AppTest {
35
36
36
37
@ Test
37
38
void subscriber () {
You can’t perform that action at this time.
0 commit comments