File tree Expand file tree Collapse file tree 8 files changed +8
-67
lines changed
examples/cloud-eureka-server
grpc-client-spring-boot-autoconfigure
grpc-server-spring-boot-autoconfigure Expand file tree Collapse file tree 8 files changed +8
-67
lines changed Original file line number Diff line number Diff line change @@ -86,13 +86,6 @@ For Maven add the following dependencies:
86
86
<groupId >org.springframework.boot</groupId >
87
87
<artifactId >spring-boot-starter-test</artifactId >
88
88
<scope >test</scope >
89
- <!-- Exclude the test engine you don't need -->
90
- <exclusions >
91
- <exclusion >
92
- <groupId >org.junit.vintage</groupId >
93
- <artifactId >junit-vintage-engine</artifactId >
94
- </exclusion >
95
- </exclusions >
96
89
</dependency >
97
90
<!-- Mocking Framework (Optional) -->
98
91
<dependency >
@@ -111,10 +104,7 @@ testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
111
104
// Grpc-Test-Support
112
105
testImplementation("io.grpc:grpc-testing")
113
106
// Spring-Test-Support (Optional)
114
- testImplementation("org.springframework.boot:spring-boot-starter-test") {
115
- // Exclude the test engine you don't need
116
- exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
117
- }
107
+ testImplementation("org.springframework.boot:spring-boot-starter-test")
118
108
// Mocking Framework (Optional)
119
109
testImplementation("org.mockito:mockito-all")
120
110
````
Original file line number Diff line number Diff line change @@ -101,13 +101,6 @@ For Maven add the following dependencies:
101
101
<groupId >org.springframework.boot</groupId >
102
102
<artifactId >spring-boot-starter-test</artifactId >
103
103
<scope >test</scope >
104
- <!-- Exclude the test engine you don't need -->
105
- <exclusions >
106
- <exclusion >
107
- <groupId >org.junit.vintage</groupId >
108
- <artifactId >junit-vintage-engine</artifactId >
109
- </exclusion >
110
- </exclusions >
111
104
</dependency >
112
105
````
113
106
@@ -120,10 +113,7 @@ testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
120
113
// Grpc-Test-Support
121
114
testImplementation("io.grpc:grpc-testing")
122
115
// Spring-Test-Support (Optional)
123
- testImplementation("org.springframework.boot:spring-boot-starter-test") {
124
- // Exclude the test engine you don't need
125
- exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
126
- }
116
+ testImplementation("org.springframework.boot:spring-boot-starter-test")
127
117
````
128
118
129
119
## Unit Tests
Original file line number Diff line number Diff line change @@ -85,13 +85,6 @@ public class MyComponent {
85
85
<groupId >org.springframework.boot</groupId >
86
86
<artifactId >spring-boot-starter-test</artifactId >
87
87
<scope >test</scope >
88
- <!-- Exclude the test engine you don't need -->
89
- <exclusions >
90
- <exclusion >
91
- <groupId >org.junit.vintage</groupId >
92
- <artifactId >junit-vintage-engine</artifactId >
93
- </exclusion >
94
- </exclusions >
95
88
</dependency >
96
89
<!-- Mocking Framework (Optional) -->
97
90
<dependency >
@@ -110,10 +103,7 @@ testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
110
103
// Grpc-Test-Support
111
104
testImplementation("io.grpc:grpc-testing")
112
105
// Spring-Test-Support (Optional)
113
- testImplementation("org.springframework.boot:spring-boot-starter-test") {
114
- // Exclude the test engine you don't need
115
- exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
116
- }
106
+ testImplementation("org.springframework.boot:spring-boot-starter-test")
117
107
// Mocking Framework (Optional)
118
108
testImplementation("org.mockito:mockito-all")
119
109
````
Original file line number Diff line number Diff line change @@ -100,13 +100,6 @@ public class MyServiceImpl extends MyServiceGrpc.MyServiceImplBase {
100
100
<groupId >org.springframework.boot</groupId >
101
101
<artifactId >spring-boot-starter-test</artifactId >
102
102
<scope >test</scope >
103
- <!-- Exclude the test engine you don't need -->
104
- <exclusions >
105
- <exclusion >
106
- <groupId >org.junit.vintage</groupId >
107
- <artifactId >junit-vintage-engine</artifactId >
108
- </exclusion >
109
- </exclusions >
110
103
</dependency >
111
104
````
112
105
@@ -119,10 +112,7 @@ testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
119
112
// Grpc-Test-Support
120
113
testImplementation("io.grpc:grpc-testing")
121
114
// Spring-Test-Support (Optional)
122
- testImplementation("org.springframework.boot:spring-boot-starter-test") {
123
- // Exclude the test engine you don't need
124
- exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
125
- }
115
+ testImplementation("org.springframework.boot:spring-boot-starter-test")
126
116
````
127
117
128
118
## 单元测试
Original file line number Diff line number Diff line change @@ -6,8 +6,5 @@ dependencies {
6
6
implementation ' org.springframework.cloud:spring-cloud-starter-netflix-eureka-server'
7
7
implementation ' org.springframework.boot:spring-boot-starter-actuator'
8
8
9
- testImplementation(' org.springframework.boot:spring-boot-starter-test' ){
10
- exclude module : ' junit-vintage-engine'
11
- exclude module : ' junit'
12
- }
9
+ testImplementation(' org.springframework.boot:spring-boot-starter-test' )
13
10
}
Original file line number Diff line number Diff line change @@ -30,12 +30,5 @@ dependencies {
30
30
api ' io.grpc:grpc-stub'
31
31
32
32
testImplementation ' io.grpc:grpc-testing'
33
- testImplementation(' org.springframework.boot:spring-boot-starter-test' ) {
34
- exclude module : ' junit-vintage-engine'
35
- exclude module : ' junit'
36
- }
37
-
38
- testImplementation ' org.junit.jupiter:junit-jupiter-api'
39
-
40
- testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine'
33
+ testImplementation(' org.springframework.boot:spring-boot-starter-test' )
41
34
}
Original file line number Diff line number Diff line change @@ -31,11 +31,5 @@ dependencies {
31
31
api ' io.grpc:grpc-api'
32
32
33
33
testImplementation ' io.grpc:grpc-testing'
34
- testImplementation ' org.junit.jupiter:junit-jupiter-api'
35
- testImplementation(' org.springframework.boot:spring-boot-starter-test' ) {
36
- exclude module : ' junit-vintage-engine'
37
- exclude module : ' junit'
38
- }
39
-
40
- testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine'
34
+ testImplementation(' org.springframework.boot:spring-boot-starter-test' )
41
35
}
Original file line number Diff line number Diff line change @@ -71,10 +71,7 @@ dependencies {
71
71
implementation ' jakarta.annotation:jakarta.annotation-api'
72
72
}
73
73
testImplementation ' io.grpc:grpc-testing'
74
- testImplementation(' org.springframework.boot:spring-boot-starter-test' ) {
75
- exclude module : ' junit-vintage-engine'
76
- exclude module : ' junit'
77
- }
74
+ testImplementation(' org.springframework.boot:spring-boot-starter-test' )
78
75
79
76
testImplementation ' org.springframework.boot:spring-boot-starter-actuator'
80
77
testImplementation ' org.springframework.security:spring-security-config'
You can’t perform that action at this time.
0 commit comments