Is a library to wrap Faker Project if you include the library in your project
you can use the FakeAnnotation
to create mock data.
- First create a new implementation of annotation with the name that you want (package faker.generator)
- Create a new class that implement
FakeService<T>
on the packagefaker.generator.services
and write to code to implement the method - Write on the annotation create in the point 1
@FakeServiceName
with the service name create on the step 2. - Write your test in a separated file.