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
package test; | |
import java.util.Locale; | |
import com.github.javafaker.Faker; | |
public class FackTestDataGenerator { | |
Faker faker; | |
FackTestDataGenerator() { | |
faker = new Faker(new Locale("en-IND")); | |
} | |
public String getFirstName() { | |
return faker.address().firstName(); | |
} | |
public static void main(String[] args) { | |
System.out.println(new FackTestDataGenerator().getFirstName()); | |
} | |
} |
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
<dependency> | |
<groupId>com.github.javafaker</groupId> | |
<artifactId>javafaker</artifactId> | |
<version>1.0.1</version> | |
</dependency> |