use of org.apache.cxf.javascript.fortest.AttributeTestBean in project cxf by apache.
the class AttributeTest method testDeserialization.
@Test
public void testDeserialization() throws Exception {
setupClientAndRhino("attribute-test-proxy-factory");
testUtilities.readResourceIntoRhino("/attributeTests.js");
DataBinding dataBinding = new JAXBDataBinding(AttributeTestBean.class);
assertNotNull(dataBinding);
AttributeTestBean bean = new AttributeTestBean();
bean.element1 = "e1";
bean.element2 = "e2";
bean.attribute1 = "a1";
bean.attribute2 = "a2";
String serialized = serializeObject(dataBinding, bean);
testUtilities.rhinoCallInContext("deserializeAttributeTestBean", serialized);
}
Aggregations