开发者

generate random instances with JAXB

开发者 https://www.devze.com 2023-01-29 12:26 出处:网络
I\'m using JABX to generate a tree of classes from a big schema, and then read/write instances of this schema.

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

精彩评论

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

关注公众号