use of com.zimbra.soap.mail.message.GetDataSourceUsageRequest in project zm-mailbox by Zimbra.
the class TestPurgeDataSource method checkDataSourceUsage.
private void checkDataSourceUsage() throws ServiceException {
GetDataSourceUsageResponse usage = mbox.invokeJaxb(new GetDataSourceUsageRequest());
long quota = usage.getDataSourceQuota();
for (DataSourceUsage usg : usage.getUsages()) {
assertTrue(usg.getId() + " is over quota", usg.getUsage() <= quota);
}
}
Aggregations