com.github.javafaker.Business 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 Business {
private final Faker faker;
protected Business(Faker faker) {
this.faker = faker;
}
public String creditCardNumber() {
return faker.fakeValuesService().resolve("business.credit_card_numbers", this, faker);
}
public String creditCardType() {
return faker.fakeValuesService().resolve("business.credit_card_types", this, faker);
}
public String creditCardExpiry() {
return faker.fakeValuesService().resolve("business.credit_card_expiry_dates", this, faker);
}
}