kotlinfixture icon indicating copy to clipboard operation
kotlinfixture copied to clipboard

How to access faker instance in custom factories?

Open milgner opened this issue 7 months ago • 0 comments

When not explicitly adding any factory {} block and just trying to call fixture<MyEntity>(), I get "Unable to resolve class".

Now I have started adding factory {} blocks and wonder how to best access the Java Faker instance? Right now I just decided to use Faker.instance() - but I'm not sure whether that is correct and takes the leading javaFakerStrategy {} block into consideration?

milgner avatar Nov 27 '23 14:11 milgner