kotlinfixture
kotlinfixture copied to clipboard
How to access faker instance in custom factories?
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?