File tree Expand file tree Collapse file tree
java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,8 @@ public void testCreateMutableCredentials() throws IOException {
7575 MutableCredentials credentials = new MutableCredentials (initialCredentials , scopes );
7676 URI testUri = URI .create ("https://spanner.googleapis.com" );
7777 Executor executor = mock (Executor .class );
78- RequestMetadataCallback callback = mock (RequestMetadataCallback .class );
78+ RequestMetadataCallback callback =
79+ mock (RequestMetadataCallback .class , withSettings ().withoutAnnotations ());
7980
8081 validateInitialDelegatedCredentialsAreSet (credentials , testUri );
8182
@@ -116,7 +117,8 @@ public void testUpdateMutableCredentials() throws IOException {
116117 MutableCredentials credentials = new MutableCredentials (initialCredentials , scopes );
117118 URI testUri = URI .create ("https://example.com" );
118119 Executor executor = mock (Executor .class );
119- RequestMetadataCallback callback = mock (RequestMetadataCallback .class );
120+ RequestMetadataCallback callback =
121+ mock (RequestMetadataCallback .class , withSettings ().withoutAnnotations ());
120122
121123 validateInitialDelegatedCredentialsAreSet (credentials , testUri );
122124
You can’t perform that action at this time.
0 commit comments