Closed hasys closed 3 years ago
Hi @treblereel,
XMLAdapter is work only for node elements now, when I tried it for XMLAttributes, the annotation is ignored and field saved to XML as element.
This PR contains a test. When I execute it I am getting this result:
Results : Failed tests: testSerializeValue(org.treblereel.gwt.xml.mapper.client.tests.annotations.xmladapter.attribute.AttributeAdapterTest): expected:<...?><BeanWithAttribute[ value='test string']></BeanWithAttribute...> but was:<...?><BeanWithAttribute[><value>test value</value]></BeanWithAttribute...> Tests in error: testDeserializeValue(org.treblereel.gwt.xml.mapper.client.tests.annotations.xmladapter.attribute.AttributeAdapterTest): java.lang.UnsupportedOperationException
@hasys Thank you, i ll take a look at it next monday
possible fix in https://github.com/treblereel/mapper-xml/pull/95
Closing as fix with test provided in https://github.com/treblereel/mapper-xml/pull/95
Hi @treblereel,
XMLAdapter is work only for node elements now, when I tried it for XMLAttributes, the annotation is ignored and field saved to XML as element.
This PR contains a test. When I execute it I am getting this result: