Skip to content

Commit c0c12cc

Browse files
committed
chore: Update mockito to support java 8 jspecify annotations
1 parent a31ed76 commit c0c12cc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/RegionalAccessBoundaryTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@ public boolean isDisconnected() {
404404
new File("testresources/mtls/certificate_config.json").getAbsolutePath());
405405

406406
// Mock MtlsHttpTransportFactory to return our mock transport
407-
MtlsHttpTransportFactory mockMtlsFactory = Mockito.mock(MtlsHttpTransportFactory.class);
407+
MtlsHttpTransportFactory mockMtlsFactory =
408+
Mockito.mock(MtlsHttpTransportFactory.class, Mockito.withSettings().withoutAnnotations());
408409
Mockito.doReturn(transport).when(mockMtlsFactory).create();
409410

410411
IdentityPoolCredentials credentials =

0 commit comments

Comments
 (0)