use of com.zimbra.soap.mail.message.CheckDeviceStatusResponse in project zm-mailbox by Zimbra.
the class OctopusJaxbTest method checkDeviceStatusResponse.
/**
* Validating that method used to create response in CheckDeviceStatus
* should work.
* @throws Exception
*/
@Test
public void checkDeviceStatusResponse() throws Exception {
IdStatus idStatus = IdStatus.fromIdAndStatus("idString", "statusString");
CheckDeviceStatusResponse resp = new CheckDeviceStatusResponse(idStatus);
Element response = JaxbUtil.jaxbToElement(resp, XMLElement.mFactory);
Assert.assertNotNull("response object", response);
resp = JaxbUtil.elementToJaxb(response);
Assert.assertEquals("round tripped id", "idString", resp.getDevice().getId());
Assert.assertEquals("round tripped status", "statusString", resp.getDevice().getStatus());
}
Aggregations