Closed DuhanMo closed 9 months ago
I solved this problem. using this 😭
FixtureMonkey fixtureMonkey = FixtureMonkey.builder()
.objectIntrospector(FieldReflectionArbitraryIntrospector.INSTANCE)
.build();
Sorry for the confusion.
Describe the bug
I don't want to use
@ConstructorProperties
. The problem occurs when a default constructor without parameters and a constructor with parameters exist at the same time.Tests fail depending on the constructor declaration order. (I think there is a problem with retrieving class information through reflection)
Am I using it the wrong way?
Your environment
Steps to reproduce
Expected behaviour
Pass above test
Actual behaviour
Fail, but
public Sample(String field1, String field2) ..
is at the top, it will passed