Search in sources :

Example 6 with BrowseRequest

use of com.zimbra.soap.mail.message.BrowseRequest in project zm-mailbox by Zimbra.

the class TestJaxb method testBrowseRequestDomains.

@Test
public void testBrowseRequestDomains() throws Exception {
    TestUtil.createAccount(USER_NAME);
    ZMailbox mbox = TestUtil.getZMailbox(USER_NAME);
    TestUtil.addMessage(mbox, NAME_PREFIX);
    BrowseRequest browseRequest = new BrowseRequest("domains", /* browseBy */
    "", /* regex */
    10);
    BrowseResponse browseResponse = doBrowseRequest(browseRequest);
    Assert.assertNotNull("JAXB BrowseResponse object", browseResponse);
    List<BrowseData> datas = browseResponse.getBrowseDatas();
    Assert.assertNotNull("JAXB BrowseResponse datas", datas);
}
Also used : BrowseResponse(com.zimbra.soap.mail.message.BrowseResponse) ZMailbox(com.zimbra.client.ZMailbox) BrowseRequest(com.zimbra.soap.mail.message.BrowseRequest) BrowseData(com.zimbra.soap.mail.type.BrowseData) Test(org.junit.Test)

Aggregations

ZMailbox (com.zimbra.client.ZMailbox)6 BrowseRequest (com.zimbra.soap.mail.message.BrowseRequest)6 Test (org.junit.Test)6 BrowseResponse (com.zimbra.soap.mail.message.BrowseResponse)4 Element (com.zimbra.common.soap.Element)3 BrowseData (com.zimbra.soap.mail.type.BrowseData)3