Skip to content

Commit ae9def4

Browse files
committed
fixed tests
1 parent 07e6a8e commit ae9def4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

secretmanager/src/test/java/secretmanager/SnippetsIT.java

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

secretmanager/src/test/java/secretmanager/regionalsamples/SnippetsIT.java

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

0 commit comments

Comments
 (0)