Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/intTest/java/com/box/sdk/BoxWebHookIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,17 @@ public void createWebHookSignRequestOnFolderSucceeds() throws IOException {
}
}

@Test
public void listAllWebhooks() throws IOException {
BoxAPIConnection api = jwtApiForServiceAccount();
Iterable<BoxWebHook.Info> webhooks = BoxWebHook.all(api);
for (BoxWebHook.Info info : webhooks) {
System.out.println("WebHook ID: " + info.getID());
}

throw new BoxAPIException("Just for test for test");
}

private <T> Set<T> toSet(T[] values) {
return new HashSet<>(Arrays.asList(values));
}
Expand Down
Loading