Created
September 9, 2022 17:59
-
-
Save mfaisalkhatri/73352035ce37ea3697285bf2e31c0c29 to your computer and use it in GitHub Desktop.
Data Builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DataBuilder { | |
private static final Faker FAKER = Faker.instance (); | |
public static RegisterUserWithBuilder getUserData () { | |
return RegisterUserWithBuilder.builder () | |
.firstName (FAKER.name () | |
.firstName ()) | |
.lastName (FAKER.name () | |
.lastName ()) | |
.address (FAKER.address () | |
.streetAddress ()) | |
.state (FAKER.address () | |
.state ()) | |
.city (FAKER.address () | |
.city ()) | |
.country (FAKER.address () | |
.country ()) | |
.mobileNumber (String.valueOf (FAKER.number () | |
.numberBetween (9990000000L, 9999999999L))) | |
.build (); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment