com.github.javafaker.Book Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javafaker Show documentation
Show all versions of javafaker Show documentation
This library is a port of Ruby's stympy/faker gem (as well as Perl's Data::Faker library) that generates fake data.
It's useful when you're developing a new project and need some pretty data for showcase.
package com.github.javafaker;
public class Book {
private final Faker faker;
protected Book(Faker faker) {
this.faker = faker;
}
public String author() {
return faker.fakeValuesService().resolve("book.author", this, faker);
}
public String title() {
return faker.fakeValuesService().resolve("book.title", this, faker);
}
public String publisher() {
return faker.fakeValuesService().resolve("book.publisher", this, faker);
}
public String genre() {
return faker.fakeValuesService().resolve("book.genre", this, faker);
}
}