|
1 | 1 | package org.springframework.grpc.sample; |
2 | 2 |
|
3 | | -import static org.junit.Assert.assertThrows; |
4 | | -import static org.junit.jupiter.api.Assertions.assertEquals; |
| 3 | +import io.grpc.Status.Code; |
| 4 | +import io.grpc.StatusRuntimeException; |
| 5 | +import io.grpc.reflection.v1.ServerReflectionGrpc; |
| 6 | +import io.grpc.reflection.v1.ServerReflectionRequest; |
| 7 | +import io.grpc.reflection.v1.ServerReflectionResponse; |
| 8 | +import io.grpc.stub.StreamObserver; |
5 | 9 |
|
6 | 10 | import java.util.List; |
7 | 11 | import java.util.concurrent.atomic.AtomicBoolean; |
8 | 12 | import java.util.concurrent.atomic.AtomicReference; |
9 | | - |
10 | 13 | import org.awaitility.Awaitility; |
11 | 14 | import org.junit.jupiter.api.Test; |
12 | 15 | import org.springframework.beans.factory.ObjectProvider; |
|
21 | 24 | import org.springframework.experimental.boot.test.context.EnableDynamicProperty; |
22 | 25 | import org.springframework.experimental.boot.test.context.OAuth2ClientProviderIssuerUri; |
23 | 26 | import org.springframework.grpc.client.ChannelBuilderOptions; |
24 | | -import org.springframework.grpc.client.ImportGrpcClients; |
25 | 27 | import org.springframework.grpc.client.GrpcClientFactoryCustomizer; |
| 28 | +import org.springframework.grpc.client.ImportGrpcClients; |
26 | 29 | import org.springframework.grpc.client.interceptor.security.BearerTokenAuthenticationInterceptor; |
27 | 30 | import org.springframework.grpc.sample.proto.HelloReply; |
28 | 31 | import org.springframework.grpc.sample.proto.HelloRequest; |
|
33 | 36 | import org.springframework.security.oauth2.client.registration.ClientRegistrationRepository; |
34 | 37 | import org.springframework.test.annotation.DirtiesContext; |
35 | 38 |
|
36 | | -import io.grpc.Status.Code; |
37 | | -import io.grpc.StatusRuntimeException; |
38 | | -import io.grpc.reflection.v1.ServerReflectionGrpc; |
39 | | -import io.grpc.reflection.v1.ServerReflectionRequest; |
40 | | -import io.grpc.reflection.v1.ServerReflectionResponse; |
41 | | -import io.grpc.stub.StreamObserver; |
| 39 | +import static org.junit.Assert.assertThrows; |
| 40 | +import static org.junit.jupiter.api.Assertions.assertEquals; |
42 | 41 |
|
43 | 42 | @SpringBootTest(properties = { "spring.grpc.server.port=0", |
44 | 43 | "spring.grpc.client.default-channel.address=static://0.0.0.0:${local.grpc.port}" }) |
@@ -126,7 +125,7 @@ static CommonsExecWebServerFactoryBean authServer() { |
126 | 125 | return CommonsExecWebServerFactoryBean.builder() |
127 | 126 | .useGenericSpringBootMain() |
128 | 127 | .classpath(classpath -> classpath.entries(new MavenClasspathEntry( |
129 | | - "org.springframework.boot:spring-boot-starter-oauth2-authorization-server:3.4.4"))); |
| 128 | + "org.springframework.boot:spring-boot-starter-oauth2-authorization-server:3.4.5"))); |
130 | 129 | } |
131 | 130 |
|
132 | 131 | @Bean |
|
0 commit comments