Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fill primitive properties with random data automatically? [closed]

Tags:

java

testing

Is there a java library that would help with creating instances of classes for testing? One that examines the properties of a bean and fills it with random data.
I'm basically looking for Java equivalent of Object Hydrator for C#.

like image 274
prasopes Avatar asked Aug 15 '11 16:08

prasopes


1 Answers

You could use PoDaM:

PodamFactory factory = new PodamFactoryImpl(); Pojo myPojo = factory.manufacturePojo(Pojo.class); 
like image 107
pk1 Avatar answered Sep 25 '22 11:09

pk1