Skip to content

Commit a06a1ce

Browse files
update-exception
1 parent d851777 commit a06a1ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modelarmor/src/test/java/modelarmor/SnippetsIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private static String randomId() {
8787
}
8888

8989
@Test
90-
public void testGetModelArmorTemplate() throws Exception {
90+
public void testGetModelArmorTemplate() throws IOException {
9191
CreateTemplate.createTemplate(PROJECT_ID, LOCATION_ID, TEST_TEMPLATE_ID);
9292
Template retrievedTemplate = GetTemplate.getTemplate(PROJECT_ID, LOCATION_ID, TEST_TEMPLATE_ID);
9393

@@ -96,7 +96,7 @@ public void testGetModelArmorTemplate() throws Exception {
9696
}
9797

9898
@Test
99-
public void testListModelArmorTemplates() throws Exception {
99+
public void testListModelArmorTemplates() throws IOException {
100100
CreateTemplate.createTemplate(PROJECT_ID, LOCATION_ID, TEST_TEMPLATE_ID);
101101

102102
ListTemplates.listTemplates(PROJECT_ID, LOCATION_ID);
@@ -111,7 +111,7 @@ public void testListModelArmorTemplates() throws Exception {
111111
}
112112

113113
@Test
114-
public void testListTemplatesWithFilter() throws Exception {
114+
public void testListTemplatesWithFilter() throws IOException {
115115
CreateTemplate.createTemplate(PROJECT_ID, LOCATION_ID, TEST_TEMPLATE_ID);
116116
String filter = "name=\"projects/" + PROJECT_ID + "/locations/" + LOCATION_ID + "/"
117117
+ TEST_TEMPLATE_ID + "\"";

0 commit comments

Comments
 (0)