Skip to content

Randomization parameters

Mahmoud Ben Hassine edited this page Jun 11, 2016 · 21 revisions

The EnhancedRandomBuilder is the main entry point to set all parameters of how Random Beans generate values:

EnhancedRandom random = EnhancedRandomBuilder.aNewEnhancedRandomBuilder()
   .maxCollectionSize(10)
   .maxStringLength(20)
   .charset(forName("UTF-8"))
   .dateRange(today, tomorrow)
   .timeRange(nine, five)
   .scanClasspathForConcreteTypes(true)
   .seed(123L)
   .build();
Clone this wiki locally