forked from DiUS/java-faker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fb_Photography_faker
- Loading branch information
Showing
9 changed files
with
134 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,7 @@ Fakers | |
* Avatar | ||
* Back To The Future | ||
* Aviation | ||
* Basketball | ||
* Beer | ||
* Book | ||
* Bool | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package com.github.javafaker; | ||
|
||
/** | ||
* Generate random components of basketall game, e.g. teams, coaches, positions and players. | ||
* @author unknown and irakatz | ||
*/ | ||
public class Basketball { | ||
private final Faker faker; | ||
|
||
/** | ||
* Create a constructor for Basketball. | ||
* @param faker The Faker instance for generating random, different kinds of disease, e.g. the internal disease. | ||
*/ | ||
protected Basketball(Faker faker) { | ||
this.faker = faker; | ||
} | ||
|
||
/** | ||
* Generate random basketball teams | ||
* @return Basketball teams | ||
*/ | ||
public String teams() { | ||
return faker.fakeValuesService().resolve("basketball.teams", this, faker); | ||
} | ||
|
||
/** | ||
* Generate random coaches in basketball game | ||
* @return Basketball coaches | ||
*/ | ||
public String coaches() { | ||
return faker.fakeValuesService().resolve("basketball.coaches", this, faker); | ||
} | ||
|
||
/** | ||
* Generate random positions in basketball game | ||
* @return Basketball positions | ||
*/ | ||
public String positions() { | ||
return faker.fakeValuesService().resolve("basketball.positions", this, faker); | ||
} | ||
|
||
/** | ||
* Generate random basketball players | ||
* @return Basketball players | ||
*/ | ||
public String players() { | ||
return faker.fakeValuesService().resolve("basketball.players", this, faker); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.