Skip to content

Random Beans v2.0.0

Compare
Choose a tag to compare
@fmbenhassine fmbenhassine released this 20 Feb 07:56
· 827 commits to master since this release

Major changes

  • The project has been renamed from jPopulator to Random Beans
  • The Populator interface has been renamed to EnhancedRandom
  • The PopulatorBuilder class has been renamed to EnhancedRandomBuilder
  • The Populator.populateBean(Class type) method has been renamed to EnhancedRandom.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

Enhancements

  • issue #39: Throw an ObjectGenerationException when unable to randomize a field instead of silently ignoring it
  • issue #26: Modularisation of the code base
  • issues #45 #48 #52: Several test improvements