com.github.javafaker.StarTrek 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 StarTrek {
private final Faker faker;
protected StarTrek(Faker faker) {
this.faker = faker;
}
public String character() {
return faker.fakeValuesService().resolve("star_trek.character", this, faker);
}
public String location() {
return faker.fakeValuesService().resolve("star_trek.location", this, faker);
}
public String specie() {
return faker.fakeValuesService().resolve("star_trek.specie", this, faker);
}
public String villain() {
return faker.fakeValuesService().resolve("star_trek.villain", this, faker);
}
}