I'm working with an application using Apache XMLBeans (interfaces for XML structure elements extending org.apache.xmlbeans.XmlObject, implementations for those interfaces extending org.apache.xmlbeans.impl.values.XmlComplexContentImpl)
I got following kind of functionality:
Now I'd like to have a test for this functionality but I'm not sure what is the best way to have this XML object for testing (I'd like the stub/mock object to maintain the subtree state to be easily tested). Some options:
Some ideas?
br, Touko
Found myself that the answer was pretty easy : The xmlbeans interfaces have factory classes for instantiating the beans, for example:
Address.Factory.newInstance()