Skip to content

Releases: naver/fixture-monkey

1.0.6

22 Dec 07:38
Compare
Choose a tag to compare

🐒 New Features

  • Fixture Monkey now infers properties when generating a type using a specific ArbitraryIntrospector that requires certain types of properties #846
    • Refer to the comment in ArbitraryGenerator#getRequiredPropertyGenerator
  • Support generating an instance of a Kotlin type with a private constructor #848 - @jinia91
  • Introduce InterfacePlugin featuring detailed interface options #845
    • interfaceImplements option
    • useAnonymousArbitraryIntrospector option.

⚠️ Deprecated

  • The interfaceImplements option in FixtureMonkeyBuilder is now deprecated. It will be moved in InterfacePlugin #845

1.0.5

08 Dec 07:59
Compare
Choose a tag to compare

🐞 Bug Fixes

  • Fix ConstructorPropertiesArbitraryIntrospector to be able to generate a type that does not use Lombok #840
  • Fix FailoverIntrospector to catch the exception thrown when declaring a CombinableArbitrary #841

1.0.4

01 Dec 07:57
Compare
Choose a tag to compare

🐒 New Features

  • Record types are generated using the canonical constructor by default #834

1.0.3

24 Nov 05:09
Compare
Choose a tag to compare

🐒 New Features

  • Introduce a new option pushJavaConstraintGeneratorCustomizer to customize the JavaConstraintGeneratoroption #830
  • Parallel execution is now supported with the jqwik engine #826

🐞 Bug Fixes

  • Fix the generation of decimal values, ensuring a minimum of 0, with the kotest-property engine #829

1.0.2

16 Nov 06:59
Compare
Choose a tag to compare

🐞 Bug Fixes

  • Fix generating a record instance with 2 or more constructors #823

1.0.1

14 Nov 02:31
Compare
Choose a tag to compare

🐒 New Features

  • Add Exp DSL resolving an array element at a specific index #820

1.0.0

10 Nov 06:52
Compare
Choose a tag to compare

🐒 New Features

  • Add instantiate as stable API. #811
  • Kotlin object generation with instantiateBy constructor, now utilizes the provided Kotlin constructor #816

🧪 Experimental Features

  • Add a new property selector javaGetter, replacing String expression with type-safe method reference #813

0.6.13

02 Nov 11:35
Compare
Choose a tag to compare

0.6.13

  • Add generating an instance of inner class in Java

Experimental Feature

  • Refactor factoryMethod adding a name of factory method.

0.6.12

01 Nov 06:35
Compare
Choose a tag to compare

0.6.12

  • 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.
  • Remove jqwik-kotlin dependency in fixture-monkey-kotlin module.
  • Deprecate FixtureMonkeyOptions dependency in ObjectPropertyGeneratorContext, ContainerPropertyGeneratorContext.
  • Add addDecomposedContainerValueFactory option.
  • Add giveMeExperimentalBuilder for experimental features.

Experimental Feature

  • 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()

0.6.11

20 Oct 07:49
Compare
Choose a tag to compare

0.6.11

  • Add kotest module. Using it as a runtime of generating primitive types.
  • Add supporting a custom validator in Javax, Jakarta Bean Validation.
  • Add PropertySelecotr as a super type of ExpressionGenerator to abstract how to reference a property.
  • Fix a bug in size Map in thenApply operation.
  • Add option to resolve a seed for deterministic re-runs.
  • Fix set a nested self reference object.