Skip to content

Commit 27d8487

Browse files
chore: update starter modules in spring-cloud-previews (#3657)
* chore: update starter modules in spring-cloud-previews * fix test --------- Co-authored-by: Cloud Java Bot <[email protected]>
1 parent f1ec9c3 commit 27d8487

File tree

6 files changed

+237
-109
lines changed

6 files changed

+237
-109
lines changed

spring-cloud-generator/spring-cloud-previews-template/google-cloud-language-spring-starter/src/test/java/com/google/cloud/language/v2/spring/LanguageAutoConfigurationTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import static org.assertj.core.api.Assertions.assertThat;
2020
import static org.mockito.ArgumentMatchers.any;
21+
import static org.mockito.ArgumentMatchers.anyBoolean;
2122
import static org.mockito.Mockito.when;
2223

2324
import com.google.api.gax.core.CredentialsProvider;
@@ -197,6 +198,7 @@ void testExecutorThreadCountFromProperties() {
197198
void testCustomTransportChannelProviderUsedWhenProvided() throws IOException {
198199
when(mockTransportChannelProvider.getTransportName()).thenReturn("grpc");
199200
when(mockTransportChannelProvider.getTransportChannel()).thenReturn(mockTransportChannel);
201+
when(mockTransportChannelProvider.withUseS2A(anyBoolean())).thenReturn(mockTransportChannelProvider);
200202
when(mockTransportChannel.getEmptyCallContext()).thenReturn(mockApiCallContext);
201203
when(mockApiCallContext.withCredentials(any())).thenReturn(mockApiCallContext);
202204
when(mockApiCallContext.withTransportChannel(any())).thenReturn(mockApiCallContext);

0 commit comments

Comments
 (0)