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);
}
Aggregations