Describe the bug
When type registration is used in conjunction with NullInjectGenerator, the NullInjectGenerator value is ignored.
Your environment
Steps to reproduce
FixtureMonkey fixtureMonkey = FixtureMonkey.builder()
.register(String.class, fm ->
fm.giveMeBuilder(String.class)
.set("$", "Default String")
)
.pushNullInjectGenerator(MatcherOperator.exactTypeMatchOperator(String.class, (context) -> ALWAYS_NULL_INJECT))
.build();
String str = fixtureMonkey.giveMeOne(String.class);
System.out.println("str = " + str);
Expected behaviour
Generated String should be null per NullInjectGenerator for String.class
Actual behaviour
Generated String is never null.
Describe the bug
When type registration is used in conjunction with NullInjectGenerator, the NullInjectGenerator value is ignored.
Your environment
Steps to reproduce
Expected behaviour
Generated String should be null per NullInjectGenerator for String.class
Actual behaviour
Generated String is never null.