Skip to content

Releases: naver/fixture-monkey

1.1.1

11 Nov 14:00
Compare
Choose a tag to compare

🐒 New Features

  • Add a missing giveMeJavaBuilder with an object parameter by @seongahjo in #1080

🐞 Bug Fixes

Full Changelog: 1.1.0...1.1.1

1.1.0

08 Nov 03:18
Compare
Choose a tag to compare

🐒 New Features

  • By default, KotlinPlugin is now only used for the Kotlin type, and does not change the objectIntrospector Java type option.
  • By default, the properties generated by the PrimaryConstructorArbitraryIntrospector are parameters of the constructor.
  • All interface related options migrate to the InterfacePlugin.
  • The Java ArbitraryBuilder APIs and the Kotlin ArbitraryBuilder APIs are now separated.
  • The experimental API customizeProperty is now available in the ArbitraryBuilder API.
  • The experimental javaGetter is converted to maintained.
  • Upgrade Kotest version 5.9.1

Please check out the migration guide

1.0.28

02 Nov 04:58
Compare
Choose a tag to compare

🐒 New Features

  • Add base methods of Object to proxy object of interface by @acktsap in #1067
  • Add enableLoggingFail option for failed introspect to FixtureMonkeyOptions by @HanJaehee in #1069
  • Add support javaGetter for is prefix boolean property by @seongahjo in #1072

Full Changelog: 1.0.27...1.0.28

1.1.0-RC2

21 Oct 10:30
Compare
Choose a tag to compare
1.1.0-RC2 Pre-release
Pre-release

🐒 New Features

  • By default, KotlinPlugin is now only used for the Kotlin type, and does not change the objectIntrospector Java type option.
  • By default, the properties generated by the PrimaryConstructorArbitraryIntrospector are parameters of the constructor.
  • All interface related options migrate to the InterfacePlugin.
  • The Java ArbitraryBuilder APIs and the Kotlin ArbitraryBuilder APIs are now separated.
  • The experimental API customizeProperty is now available in the ArbitraryBuilder API.

Add missing commits

1.1.0-RC1

21 Oct 08:37
Compare
Choose a tag to compare
1.1.0-RC1 Pre-release
Pre-release

🐒 New Features

  • By default, KotlinPlugin is now only used for the Kotlin type, and does not change the objectIntrospector Java type option.
  • By default, the properties generated by the PrimaryConstructorArbitraryIntrospector are parameters of the constructor.
  • All interface related options migrate to the InterfacePlugin.
  • The Java ArbitraryBuilder APIs and the Kotlin ArbitraryBuilder APIs are now separated.
  • The experimental API customizeProperty is now available in the ArbitraryBuilder API.

See the migration guide for more details.

1.0.27

10 Oct 11:37
Compare
Choose a tag to compare

🐒 New Features

  • Add enableLoggingFail option to the FailoverIntrospector #1060

check out details here

1.0.26

26 Sep 08:56
Compare
Choose a tag to compare

🐒 New Features

You can generate Korean only by using MonkeyStringArbitrary as below.

FixtureMonkey sut = FixtureMonkey.builder()
  .plugin(
          new JqwikPlugin()
	          .javaTypeArbitraryGenerator(new JavaTypeArbitraryGenerator() {
		          @Override
		          public StringArbitrary strings() {
			          return new MonkeyStringArbitrary().korean();
		          }
	          })
        )
  .build();

🧪 Experimental Features

It can be changed. This is an experimental feature.

  • Add PriorityConstructorArbitraryIntrospector #1054

It is a powerful ArbitraryIntrospector that generates an instance of a type by its constructor. It will not fail if your type has a constructor. By default, it uses the first constructor of the type.

You can use it with FailoverIntrospector if you want to use the perfect Fixture Monkey that can generate all types.

Check out the documentation!

1.0.25

11 Sep 10:32
Compare
Choose a tag to compare

🐞 Bug Fixes

  • Fix concurrency issue with string generation #1051
  • Fix seed setting as annotated by #1052

1.1.0-SNAPSHOT

04 Sep 06:35
Compare
Choose a tag to compare

🐒 New Features

  • By default, KotlinPlugin is now only used for the Kotlin type, and does not change the objectIntrospector Java type option.
  • By default, the properties generated by the PrimaryConstructorArbitraryIntrospector are parameters of the constructor.
  • The Java ArbitraryBuilder APIs and the Kotlin ArbitraryBuilder APIs are now separated.
  • The experimental API customizeProperty is now available in the ArbitraryBuilder API.

See the migration guide for more details.

1.0.24

31 Aug 06:16
Compare
Choose a tag to compare

🐒 New Features

  • Add new APIs that generates the unique value by Values.unique(Supplier) or CombinableArbitrary.unique(). #1034
.set("$[*]", Values.unique(() -> Arbitraries.integers().between(0, 3).sample())), 
.<List<Integer>>customizeProperty(typedRoot(), CombinableArbitrary::unique)
  • Add @Seed to reproduce the randomly populated object in fixture-monkey-junit-jupiter module. #1010 @codesejin
@Seed(1)
@RepeatedTest(100)
void seedReturnsSame() {
	String expected = "섨ꝓ仛禦催ᘓ蓊類౺阹瞻塢飖獾ࠒ⒐፨婵얎⽒竻·俌欕悳잸횑ٻ킐結";

	String actual = SUT.giveMeOne(String.class);

	then(actual).isEqualTo(expected);
}

⚠️ Deprecated

  • Deprecate ElementJsonSubTypesObjectPropertyGenerator, PropertyJsonSubTypesObjectPropertyGenerator in fixture-monkey-jackson module. #1035
    • Please use the ElementJsonSubTypesConcreteTypeResolver, PropertyJsonSubTypesConcreteTypeResolver instead.