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
39 changed files
with
1,511 additions
and
40 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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
language: java | ||
dist: trusty | ||
dist: xenial | ||
jdk: | ||
- oraclejdk8 | ||
- openjdk7 | ||
- openjdk10 | ||
- oraclejdk11 | ||
sudo: true | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.github.javafaker; | ||
|
||
public class Barcode { | ||
|
||
private Faker faker; | ||
|
||
public Barcode(Faker faker) { | ||
this.faker = faker; | ||
} | ||
|
||
public String type() { | ||
return faker.resolve("barcode.types"); | ||
} | ||
|
||
public String data(){ | ||
return faker.resolve("barcode.datas"); | ||
} | ||
|
||
public String typeAndData(){ | ||
return faker.resolve("barcode.typeAndData"); | ||
} | ||
} |
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,43 @@ | ||
package com.github.javafaker; | ||
|
||
/** | ||
* Generate random parts in BojackHorseman. | ||
* @author unknown and irakatz | ||
*/ | ||
|
||
public class BojackHorseman { | ||
private final Faker faker; | ||
|
||
/** | ||
* Create a constructor for BojackHorseman. | ||
* @param faker The Faker instance for generating random parts in BojackHorseman. | ||
*/ | ||
protected BojackHorseman(Faker faker) { | ||
this.faker = faker; | ||
} | ||
|
||
/** | ||
* Generate random character's name in BojackHorseman. | ||
* @return Characters in BojackHorseman | ||
*/ | ||
public String characters() { | ||
return faker.fakeValuesService().resolve("bojack_horseman.characters", this, faker); | ||
} | ||
|
||
/** | ||
* Generate random quotes in BojackHorseman. | ||
* @return Quotes in BojackHorseman | ||
*/ | ||
public String quotes() { | ||
return faker.fakeValuesService().resolve("bojack_horseman.quotes", this, faker); | ||
} | ||
|
||
/** | ||
* Generate random tongue twisters in BojackHorseman. | ||
* @return Tongue twisters in BojackHorseman | ||
*/ | ||
public String tongueTwisters() { | ||
return faker.fakeValuesService().resolve("bojack_horseman.tongue_twisters", 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
package com.github.javafaker; | ||
|
||
/** | ||
* Generate random, different kinds of disease. | ||
*/ | ||
public class Disease { | ||
private final Faker faker; | ||
|
||
/** | ||
* Create a constructor for Disease | ||
* @param faker The Faker instance for generating random, different kinds of disease, e.g. the internal disease. | ||
*/ | ||
protected Disease(Faker faker) { | ||
this.faker = faker; | ||
} | ||
|
||
/** | ||
* Generate random internal disease | ||
* @return An internal disease | ||
*/ | ||
public String internalDisease() { | ||
return faker.fakeValuesService().resolve("disease.internal_disease", this, faker); | ||
} | ||
|
||
/** | ||
* Generate random neurology disease | ||
* @return A neurology disease | ||
*/ | ||
public String neurology() { | ||
return faker.fakeValuesService().resolve("disease.neurology", this, faker); | ||
} | ||
|
||
/** | ||
* Generate random surgery disease | ||
* @return A surgery disease | ||
*/ | ||
public String surgery() { | ||
return faker.fakeValuesService().resolve("disease.surgery", this, faker); | ||
} | ||
|
||
/** | ||
* Generate random paediattics disease | ||
* @return A paediatrics disease | ||
*/ | ||
public String paediatrics() { | ||
return faker.fakeValuesService().resolve("disease.paediatrics", this, faker); | ||
} | ||
|
||
/** | ||
* Generate random gynecology and obstetrics disease | ||
* @return A gynecology and obstetrics disease | ||
*/ | ||
public String gynecologyAndObstetrics() { | ||
return faker.fakeValuesService().resolve("disease.gynecology_and_obstetrics", this, faker); | ||
} | ||
|
||
/** | ||
* Generate random ophthalmology and otorhinolaryngology disease | ||
* @return A ophthalmology and otorhinolaryngology disease | ||
*/ | ||
public String ophthalmologyAndOtorhinolaryngology() { | ||
return faker.fakeValuesService().resolve("disease.ophthalmology_and_otorhinolaryngology", this, faker); | ||
} | ||
|
||
/** | ||
* Generate random dermatolory disease | ||
* @return A dermatolory disease | ||
*/ | ||
public String dermatolory() { | ||
return faker.fakeValuesService().resolve("disease.dermatolory", 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.github.javafaker; | ||
|
||
/** | ||
* This class is used to generate gender randomly. | ||
* | ||
*/ | ||
|
||
public class Gender { | ||
private final Faker faker; | ||
|
||
protected Gender(Faker faker) { | ||
this.faker = faker; | ||
} | ||
|
||
/** | ||
* This method returns a gender type | ||
* | ||
* @return a string of gender type | ||
*/ | ||
public String types() { | ||
return faker.fakeValuesService().fetchString("gender.types"); | ||
} | ||
|
||
/** | ||
* This method returns a binary gender type | ||
* | ||
* @return a string of binary gender type | ||
*/ | ||
public String binaryTypes() { | ||
return faker.fakeValuesService().fetchString("gender.binary_types"); | ||
} | ||
|
||
/** | ||
* This method returns a short binary gender type | ||
* | ||
* @return a string of short binary gender type | ||
*/ | ||
public String shortBinaryTypes() { | ||
return faker.fakeValuesService().fetchString("gender.short_binary_types"); | ||
} | ||
} |
Oops, something went wrong.