Skip to content

Commit 8fb8f3c

Browse files
committed
fix: restore unnecessary commit
1 parent bc983fc commit 8fb8f3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk-platform-java/gax-java/gax-httpjson/src/test/java/com/google/api/gax/httpjson/HttpJsonClientCallsTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,14 @@ void setUp() throws IOException {
7777
endpointContext = Mockito.mock(EndpointContext.class);
7878
mockChannel = Mockito.mock(HttpJsonChannel.class);
7979
descriptor = Mockito.mock(ApiMethodDescriptor.class);
80-
callOptions = HttpJsonCallOptions.newBuilder().setCredentials(credentials).build();
80+
callOptions = Mockito.mock(HttpJsonCallOptions.class);
8181

8282
callContext =
8383
HttpJsonCallContext.of(mockChannel, callOptions)
8484
.withEndpointContext(endpointContext)
8585
.withChannel(mockChannel);
8686

87+
Mockito.when(callOptions.getCredentials()).thenReturn(credentials);
8788
Mockito.doNothing()
8889
.when(endpointContext)
8990
.validateUniverseDomain(

0 commit comments

Comments
 (0)