In Spring, instead of creating functions that crea...
# spring
d
In Spring, instead of creating functions that create fake responses, is there something like what they call “factories” (in other frameworks) that can create responses with the Faker librairie ? Something like this: https://docs.adonisjs.com/guides/models/factories ?
t
I’ve used https://www.datafaker.net/ for this. Not sure if it conceptually maps 1:1 to what you’re after, but I’ve found it helpful in tests.
👍 1
d
Thanks @todd.ginsberg