Random Beans v2.0.0
fmbenhassine
released this
20 Feb 07:56
·
827 commits
to master
since this release
Major changes
- The project has been renamed from
jPopulator
toRandom Beans
- The
Populator
interface has been renamed toEnhancedRandom
- The
PopulatorBuilder
class has been renamed toEnhancedRandomBuilder
- The
Populator.populateBean(Class type)
method has been renamed toEnhancedRandom.nextObject(Class type)
- Java 7 is the minimum Java version required for v2.x line
Features
- issue #19: Add support to populate arrays and collection types
- issue #24: Add support to exclude subfields using the dotted notation
- issue #25: Add support to populate immutable objects
- issue #30: Add random seed parameter
- issue #32: Add the
RandomizerRegistry
API as a SPI to register custom randomizers - issue #33: Add support for recursive data structures
- issue #36: Add support to register randomizers using the
@Randomizer
annotation - issue #59: Add support to scan the classpath for concrete types when the field is an abstract or interface type
- issue #61: Add support to skip fields using the
SkipRandomizer
API
Bug fixes
- issue #37: Fix incorrect error message in
MapRandomizer
- issue #44: Fix
StackOverflowError
when a field is of the same type as declaring class (infinite recursion) - issue #56: Fix regression of #1 , Random Beans should not try to populate static final fields