fixture-monkey
fixture-monkey copied to clipboard
Incompatibility between BuilderArbitraryCustomizer and manipulating the instance
I have a class with a BuilderArbitraryCustomizer where I set some Arbitraries. In my tests, I want to use giveMeBuilder(MyClass).set(fieldName_managed_by_arbitrary, myValue).sample() to get an instance with my wished values. This is the arbitrary I use:
.use(Arbitraries.strings().numeric().ofMaxLength(3)).in(MyClass.MyClassBuilder::myField);
Expected Instance with my entered value
Current result Instance with random value from the arbitrary
@njimenezotto Hello. Could you give us an example for reproducing the problem?
close now. welcome to reopen!