/faker

A Java port of the Faker ruby gem: https://github.com/stympy/faker/

Primary LanguageJava

Faker

Work in progress

Generates fake data for testing or populating a development database.

A Java port of the Faker ruby gem.

Build Status

Installing

repositories {
    // ...
    maven { url "https://jitpack.io" }
}

dependencies {
    compile 'com.github.blocoio:faker:-SNAPSHOT'
}

Usage

Faker faker = new Faker();
faker.name.firstName();    // Returns "Aaron"
faker.company.name();      // Returns "Hirthe-Ritchie"

Faker faker = new Faker("nl");
faker.name.firstName();    // Returns "Thijs"

For full list of available options, check the original source.

Available components

  • Address
  • App
  • Company
  • Name

TODO

  • Dates support
  • Regular expressions support
  • Implement remaining components