This repository was archived by the owner on Apr 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/it Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242@ RunWith (JUnit4 .class )
4343public class ITMutableCredentialsTest extends ITAbstractSpannerTest {
4444 private static final String VALID_KEY_RESOURCE =
45- "/com/google/cloud/spanner/connection/test-key-cloud-storage.json" ;
45+ "/com/google/cloud/spanner/connection/test-key-cloud-storage.json" ;
4646
4747 private static final String INVALID_KEY_RESOURCE =
4848 "/com/google/cloud/spanner/connection/test-key.json" ;
@@ -51,8 +51,7 @@ public class ITMutableCredentialsTest extends ITAbstractSpannerTest {
5151 public void testMutableCredentialsUpdateAuthorizationForRunningClient () throws IOException {
5252
5353 GoogleCredentials credentialsFromFile ;
54- try (InputStream stream =
55- Files .newInputStream (Paths .get (VALID_KEY_RESOURCE ))) {
54+ try (InputStream stream = Files .newInputStream (Paths .get (VALID_KEY_RESOURCE ))) {
5655 credentialsFromFile = GoogleCredentials .fromStream (stream );
5756 }
5857 assumeTrue (
@@ -61,7 +60,7 @@ public void testMutableCredentialsUpdateAuthorizationForRunningClient() throws I
6160
6261 ServiceAccountCredentials validCredentials = (ServiceAccountCredentials ) credentialsFromFile ;
6362 ServiceAccountCredentials invalidCredentials ;
64- try (InputStream stream = Files .newInputStream (Paths .get (INVALID_KEY_RESOURCE ))) {
63+ try (InputStream stream = Files .newInputStream (Paths .get (INVALID_KEY_RESOURCE ))) {
6564 assertNotNull ("Missing test resource: " + INVALID_KEY_RESOURCE , stream );
6665 invalidCredentials = ServiceAccountCredentials .fromStream (stream );
6766 }
You can’t perform that action at this time.
0 commit comments