naver / fixture-monkey

Let Fixture Monkey generate test instances including edge cases automatically
https://naver.github.io/fixture-monkey
Apache License 2.0
560 stars 89 forks source link

Unable to generate record where the construct calls a method from the parameter #822

Closed esfomeado closed 10 months ago

esfomeado commented 10 months ago

Describe the bug

If a record construct calls a method from one of the parameters a NPE is thrown since the the parameter is null.

This use to work fine on 0.6.X but no longer works

Your environment

Fixture Monkey 1.0.1 Java 17

Steps to reproduce

https://github.com/esfomeado/fixture-monkey-bug/blob/a532641bb03aef4e0614ba7f0efcd9428f09388a/src/test/java/com/example/bug/FixtureMonkeyTest.java#L122

Expected behaviour

Should generate the record

Actual behaviour

The record is not generated

seongahjo commented 10 months ago

@esfomeado Thank you for reporting an issue. It is fixed in 1.0.2! Thank you.