Search in sources :

Example 1 with VerifyIndexResult

use of com.zimbra.cs.account.soap.SoapProvisioning.VerifyIndexResult in project zm-mailbox by Zimbra.

the class TestJaxbProvisioning method testIndex.

@Test
public void testIndex() throws Exception {
    ZimbraLog.test.debug("Starting testIndex");
    Account acct = ensureMailboxExists(testAcctEmail);
    ReIndexInfo info = prov.reIndex(acct, "start", null, null);
    assertNotNull("ReIndexInfo", info);
    assertNotNull("getStatus result", info.getStatus());
    // Progress can be null.
    // Progress prog = info.getProgress();
    VerifyIndexResult ndxRes = prov.verifyIndex(acct);
    assertNotNull("VerifyIndexResult", ndxRes);
    prov.deleteMailbox(acct.getId());
}
Also used : Account(com.zimbra.cs.account.Account) VerifyIndexResult(com.zimbra.cs.account.soap.SoapProvisioning.VerifyIndexResult) ReIndexInfo(com.zimbra.cs.account.soap.SoapProvisioning.ReIndexInfo) Test(org.junit.Test)

Aggregations

Account (com.zimbra.cs.account.Account)1 ReIndexInfo (com.zimbra.cs.account.soap.SoapProvisioning.ReIndexInfo)1 VerifyIndexResult (com.zimbra.cs.account.soap.SoapProvisioning.VerifyIndexResult)1 Test (org.junit.Test)1