Skip to content

Commit ef3f592

Browse files
committed
test(spanner): disable annotation copying of RequestMetadataCallback mock
1 parent 34e0958 commit ef3f592

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/MutableCredentialsTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)