Skip to content

Commit a9ae35d

Browse files
committed
Fix AgentIdentityUtilsTest compilation after checkstyle
1 parent b70c68f commit a9ae35d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public void getAgentIdentityCertificate_happyPath_loadsCertificate() throws IOEx
180180
envProvider.setEnv("GOOGLE_API_CERTIFICATE_CONFIG", configFile.getAbsolutePath());
181181
AgentIdentityUtils.CertInfo info = AgentIdentityUtils.getAgentIdentityCertInfo();
182182
assertNotNull(info);
183-
assertTrue(info.certificate.getIssuerDN().getName().contains("unit-tests"));
183+
assertTrue(info.getCertificate().getIssuerDN().getName().contains("unit-tests"));
184184
}
185185

186186
@Test
@@ -256,7 +256,7 @@ public void getAgentIdentityCertInfo_fallbackPath_loadsCertificate() throws IOEx
256256
assertNotNull(info);
257257
assertEquals(
258258
new String(Files.readAllBytes(tempDir.resolve("certificates.pem")), StandardCharsets.UTF_8),
259-
info.certContent);
259+
info.getCertContent());
260260
}
261261

262262
@Test

0 commit comments

Comments
 (0)