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

Error while generating class where constructor as different types from parent #907

Closed esfomeado closed 8 months ago

esfomeado commented 8 months ago

Describe the bug

When generating class where constructor as different types from parent an exception is thrown.

java.lang.IllegalArgumentException: argument type mismatch

Your environment

Steps to reproduce

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

Expected behaviour

Should generate the class correctly

Actual behaviour

Exception is thrown

seongahjo commented 8 months ago

@esfomeado Hello, thank you for reporting an issue. It is fixed in 1.0.13. Please check it out!