|
From: Ryan J. M. <ry...@da...> - 2008-08-04 12:23:28
|
One thing I'd like to do in order to provide better test coverage to the JAXB-based providers is to have some tests that can perform the following: Validate JAXB classes against an XML Schema Work with XJC generated from an XML Schema Validate against some pre-existing XML, Fastinfoset, and JSON instances The challenging thing is with the XJC generated classes because it the class generation always runs, no matter if you just want it to execute just for unit tests. This means that the test data would be packaged with the distribution, which is something we'd like to avoid. With that said, I' like to separate out the XJC portion into a subproject called something like "resteasy-test-data" that would simply contain JAXB generated classes and other test data. I wanted to float the idea first to see what people's opinions are on the subject. So far, it's working just dandy and I have classes generated from an XSD working. On a related note: I'm finishing up the JSON providers so that they are inline with the updates I made to the rest of the JAXB providers. I found some areas to refactor a bit more in order to make it more maintainable. With that said, please let me know if you're making any changes the JAXB, Fastinfoset, or JSON providers. Thanks! Ryan- |