File tree Expand file tree Collapse file tree
secretmanager/src/test/java/secretmanager Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public class SnippetsIT {
109109 private ByteArrayOutputStream stdOut ;
110110
111111 @ BeforeClass
112- public static void beforeAll () throws IOException {
112+ public static void beforeAll () throws Exception {
113113 Assert .assertFalse ("missing GOOGLE_CLOUD_PROJECT" , Strings .isNullOrEmpty (PROJECT_ID ));
114114
115115 TEST_SECRET = createSecret (true );
@@ -148,7 +148,7 @@ public void afterEach() {
148148 }
149149
150150 @ AfterClass
151- public static void afterAll () throws IOException {
151+ public static void afterAll () throws Exception {
152152 Assert .assertFalse ("missing GOOGLE_CLOUD_PROJECT" , Strings .isNullOrEmpty (PROJECT_ID ));
153153
154154 deleteSecret (TEST_SECRET .getName ());
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ public class SnippetsIT {
117117 private ByteArrayOutputStream stdOut ;
118118
119119 @ BeforeClass
120- public static void beforeAll () throws IOException {
120+ public static void beforeAll () throws Exception {
121121 Assert .assertFalse ("missing GOOGLE_CLOUD_PROJECT" , Strings .isNullOrEmpty (PROJECT_ID ));
122122 Assert .assertFalse ("missing GOOGLE_CLOUD_PROJECT_LOCATION" ,
123123 Strings .isNullOrEmpty (LOCATION_ID ));
@@ -186,7 +186,7 @@ private static String randomSecretId() {
186186 return "test-drz-" + random .nextLong ();
187187 }
188188
189- private static void createTags () throws IOException {
189+ private static void createTags () throws Exception {
190190 try (TagKeysClient tagKeysClient = TagKeysClient .create ()) {
191191 ProjectName parent = ProjectName .of (PROJECT_ID );
192192 Random random = new Random ();
You can’t perform that action at this time.
0 commit comments