Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

jbueza/Faker.java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Faker.java

687474703a2f2f696d6775722e636f6d2f4b69696e512e706e67

A tool for generating fake data. This is inspired by Faker.js, Faker.rb.

Usage

Person API

Faker faker = new Faker();

String name = faker.Person().fullName();                // Jaime Bueza
String firstName = faker.Person().firstName();          // John
String lastName = faker.Person().lastName();            // Smith

Company API

Faker faker = new Faker();

String companyName = faker.Company().name();                // Adaptive Infrastructures Inc.

Lorem Ipsum API

Faker faker = new Faker();

String paragraphs = faker.LoremIpsum().paragraphs(2);                // Generates two paragraphs

Download

Go here to the Releases view of the repository!

Or just download directly.

License

MIT.

Special Thanks

For inspiration:

About

An minimal port of Faker.js/Faker.rb library but for Java.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages