开发者

generate random instances with JAXB

I'm using JABX to generate a tree of classes from a big schema, and then read/write instances of this schema.

Now, to bullet-pro开发者_如何学编程of my application, I'd like to have JAXB (or some other tool) to generate many random instances of that schema, that I can feed in my application. This way I would be able to see if my application crashes for some input data.

I'm expecting that JAXB, with only the cardinality and default values at each nodes, be able to generate itself an instance of the tree.

Do you think it's feasible with JAXB? Do you have other ideas?


XMLBeans has such a tool: xsd2inst

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜