You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixture Monkey is not able to generate this type out of the box which is fine.
I´ve tried ignoring that field, added the package to the exclusion list, added an arbitrary generator but nothing stopped Fixture Monkey from going into a infinite recursion.
It is due to the option useAnonymousArbitraryIntrospector, it generates the getters of interface.
It will be fixed in 1.2.0 for backward compatibility, until then you can use the option below.
fixtureMonkeyBuilder.pushPropertyGenerator(
newMatcherOperator<>(
p -> Modifier.isInterface(Types.getActualType(p.getType()).getModifiers()),
p -> Collections.emptyList()
)
)
Describe the bug
I have a class that contains a protobuf
Message
.Fixture Monkey is not able to generate this type out of the box which is fine.
I´ve tried ignoring that field, added the package to the exclusion list, added an arbitrary generator but nothing stopped Fixture Monkey from going into a infinite recursion.
Your environment
Fixture Monkey 1.1.3
Java 21
Steps to reproduce
https://github.com/esfomeado/fixture-monkey-bug/blob/master/src/test/java/com/example/bug/FixtureMonkeyTest.java#L212
Expected behaviour
It should stop trying to generate the field
Actual behaviour
It never stops
The text was updated successfully, but these errors were encountered: