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

Latest commit

 

History

History
51 lines (31 loc) · 1.24 KB

README.md

File metadata and controls

51 lines (31 loc) · 1.24 KB

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: