The first draft of PODAM is ready. Currently the framework sets the initial state of a POJO with random values. The supported types are:
- Primitive types
- Wrapper classes
- arrays of objects
- arrays of primitives
- Any other object which either has a no-arg constructor or a static factory which takes no arguments
- PODAM does not set the state of complex object graphs (In roadmap)
- Custom annotations as defined in my previous article are yet not supported (in roadmap)
- If a class does not expose a public, no-arg constructor, and it does not expose a public static factory which takes no arguments the attribute value is not set
You should be able to browse the Jemos Maven Repository and search for PODAM. Currently PODAM is in version 1.0.0-SNAPSHOT and the source and test code are available.
PODAM runs under the MIT license.
Currently PODAM can fill the full state of the attached POJO (OneDimensionalTestPojo). Download OneDimensionalTestPojo
It would be nice to hear from you of any critics, suggestions, comments, issues.