jPopulator is a java library that allows you to populate java beans with random data.
Populating a deep type hierarchy by hand is a tedious task and the goal of jPopulator is to make this task hassle-free.
Let's see an example, suppose you have the following classes:
If you want to populate a Person
bean with jPopulator, you write this:
Populator populator = new PopulatorBuilder().build();
Person person = populator.populateBean(Person.class);
And voila! jPopulator will introspect the Person
type hierarchy, generate an instance for each nested bean and populate it with random data.
jPopulator documentation can be found here : https://github.com/benas/jPopulator/wiki
Thank you all for your contributions!
jPopulator is released under the MIT License.