use of com.zimbra.soap.admin.message.ModifyCalendarResourceRequest in project zm-mailbox by Zimbra.
the class TestServerEnumeration method testModifyCalresAsGlobalAdmin.
@Test
public void testModifyCalresAsGlobalAdmin() throws Exception {
ModifyCalendarResourceRequest req = new ModifyCalendarResourceRequest(myCalRes.getId());
req.addAttr(new Attr(Provisioning.A_zimbraMailHost, NON_EXISTING_SERVER));
req.addAttr(new Attr(Provisioning.A_description, "test description"));
try {
adminSoapProv.invokeJaxb(req);
fail("should have caught an exception");
} catch (SoapFaultException e) {
assertEquals("should be getting 'no such server' response", AccountServiceException.NO_SUCH_SERVER, e.getCode());
}
}
Aggregations