Skip to content

Commit fd09a87

Browse files
committed
[WIP] Test webooks
1 parent e2d407d commit fd09a87

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/intTest/java/com/box/sdk/BoxWebHookIT.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,17 @@ public void createWebHookSignRequestOnFolderSucceeds() throws IOException {
207207
}
208208
}
209209

210+
@Test
211+
public void listAllWebhooks() throws IOException {
212+
BoxAPIConnection api = jwtApiForServiceAccount();
213+
Iterable<BoxWebHook.Info> webhooks = BoxWebHook.all(api);
214+
for (BoxWebHook.Info info : webhooks) {
215+
System.out.println("WebHook ID: " + info.getID());
216+
}
217+
218+
throw new BoxAPIException("Just for test for test");
219+
}
220+
210221
private <T> Set<T> toSet(T[] values) {
211222
return new HashSet<>(Arrays.asList(values));
212223
}

0 commit comments

Comments
 (0)