본문으로 건너뛰기
버전: v1.1.x

v0.6.x

v0.6.12

Features

  • Add addDecomposedContainerValueFactory option
  • Add giveMeExperimentalBuilder for experimental features

Bug Fixes

  • Fix setting Just in setLazy
  • Fix a bug in validOnly operation in ArbitraryBuilder
  • Fix a bug in addContainerType, addDecomposedContainerValueFactory option, which is not working for an implementation of option type

Breaking Changes

  • Remove jqwik-kotlin dependency in fixture-monkey-kotlin module

Deprecations

  • Deprecate FixtureMonkeyOptions dependency in ObjectPropertyGeneratorContext, ContainerPropertyGeneratorContext

Experimental

  • Add a new ArbitraryBuilder operation instantiate, instantiateBy for Kotlin, which specifies how to instantiate a given type
  • Providing a static method constructor() for specifying that it instantiates a given type by constructor
  • Providing a static method factoryMethod() for specifying that it instantiates a given type by factory method
  • Providing a static method field(), javaBeansProperty() that subsequently sets a property for both constructor(), factoryMethod()

v0.6.11

Features

  • Add kotest module. Using it as a runtime of generating primitive types
  • Add supporting a custom validator in Javax, Jakarta Bean Validation
  • Add PropertySelector as a super type of ExpressionGenerator to abstract how to reference a property
  • Add option to resolve a seed for deterministic re-runs

Bug Fixes

  • Fix a bug in size Map in thenApply operation
  • Fix set a nested self reference object

v0.6.10

Improvements

  • An anonymous object generated by Fixture Monkey could invoke a default method instead of invoking an arbitrary method

v0.6.9

Features

  • Add new option javaConstraintGenerator which defines a constraint of String, Decimal type, Integer type, DateTime type, Container type

Bug Fixes

  • Fix sampleList always returns a same element with AnonymousArbitraryIntrospector
  • Fix generating self reference map type with different key type
  • Fix generating a unique key of Map

Breaking Changes

  • Remove CombinableArbitrary.from(Arbitrary). Use ArbitraryUtils.toCombinableArbitrary instead

Improvements

  • Refactor CombinableArbitrary.from has a type parameter instead of wildcard type
  • Refactor setPostCondition does not cause any performance issue

v0.6.8

Features

  • DefaultDecomposedContainerValueFactory supports Map.Entry

Bug Fixes

  • A concurrency bug fixed in PrimaryConstructorArbitraryIntrospector

v0.6.7

Features

  • Add List<Property> generateChildProperties(Property property) in PropertyGenerator interface

Deprecations

  • Deprecate List<Property> generateChildProperties(AnnotatedType annotatedType) in PropertyGenerator interface, it will be removed in 0.7.0

v0.6.6

Features

  • Add more support for kotlin extensions in FixtureMonkeyBuilder

Improvements

  • Log the error instead of throwing an exception if setting field is failed with FieldReflectionArbitraryIntrospector