@Test public void testDeserialize_BatchResponse() throws Exception { String xmlResponse = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><IntuitResponse xmlns=\"http: IntuitResponse intuitResponse = (IntuitResponse) xmlobj.deserialize(xmlResponse, IntuitResponse.class); List<BatchItemResponse> batchItemResponses = intuitResponse.getBatchItemResponse(); Assert.assertEquals(batchItemResponses.size(), 3); }
@SuppressWarnings("unchecked") public Response deserialize(String str, Class<?> cl) throws SerializationException { Object unmarshalledObject = deserializeData(str, cl); return ((JAXBElement<Response>) unmarshalledObject).getValue(); }
XMLSerializer implements IEntitySerializer { @SuppressWarnings("unchecked") public Response deserialize(String str, Class<?> cl) throws SerializationException { Object unmarshalledObject = deserializeData(str, cl); return ((JAXBElement<Response>) unmarshalledObject).getValue(); } }
XMLSerializer implements IEntitySerializer { @SuppressWarnings("unchecked") public Response deserialize(String str, Class<?> cl) throws SerializationException { Object unmarshalledObject = deserializeData(str, cl); return ((JAXBElement<Response>) unmarshalledObject).getValue(); }  }
XMLSerializer implements IEntitySerializer { @SuppressWarnings("unchecked") public Response deserialize(String str, Class<?> cl) throws SerializationException { Object unmarshalledObject = deserializeData(str, cl); return ((JAXBElement<Response>) unmarshalledObject).getValue(); }  String serialize(T object); @SuppressWarnings("unchecked") Response deserialize(String str, Class<?> cl); @Override Response deserializeEntitlements(String decompressedData, Class<EntitlementsResponse> cl); }
XMLSerializer implements IEntitySerializer { @SuppressWarnings("unchecked") public Response deserialize(String str, Class<?> cl) throws SerializationException { Object unmarshalledObject = deserializeData(str, cl); return ((JAXBElement<Response>) unmarshalledObject).getValue(); }  String serialize(T object); @SuppressWarnings("unchecked") Response deserialize(String str, Class<?> cl); @Override Response deserializeEntitlements(String decompressedData, Class<EntitlementsResponse> cl);  }