Search in sources :

Example 1 with Identity

use of com.zimbra.soap.account.type.Identity in project zm-mailbox by Zimbra.

the class TestAccess method CreateIdentity.

@Test
public void CreateIdentity() throws Exception {
    String identityName = genIdentityName(seq);
    Identity identity = Identity.fromName(identityName);
    CreateIdentityRequest req = new CreateIdentityRequest(identity);
    /*
        XMLElement req = new XMLElement(AccountConstants.CREATE_IDENTITY_REQUEST);
        Element identity = req.addElement(AccountConstants.E_IDENTITY);
        identity.addAttribute(AccountConstants.A_NAME, identityName);
        */
    accessTest(Perm.PERM_SELF_ONLY, req);
}
Also used : CreateIdentityRequest(com.zimbra.soap.account.message.CreateIdentityRequest) Identity(com.zimbra.soap.account.type.Identity) Test(org.junit.Test)

Aggregations

CreateIdentityRequest (com.zimbra.soap.account.message.CreateIdentityRequest)1 Identity (com.zimbra.soap.account.type.Identity)1 Test (org.junit.Test)1