227 Commits

Author SHA1 Message Date
Matthew Traughber
f73dd19086 Added ability to get county via zip (en-US locale only) 2018-11-08 14:58:02 -05:00
Jose
6fc2a3b0a5 strip accents on email address to conform with RFC 5322 (#324)
more info on issue #296 (comment by @gregod)
2018-10-12 11:44:32 +11:00
Serge Bishyr
23e2e34c17 Add genre to music faker class (#322) 2018-10-12 11:43:07 +11:00
Vikram
c2714b3c95 New Medical Data Faker -- Updated Tests (#321)
* Added Code and iml file for Medical data faker
Contains following fakers
-- Hospital Name
-- Disease
-- Medicine
-- Symptoms

* Modified regex for Medical Symptom match

* Modified regular expression for Hospital Name

* Modified regular expression for Hospital Name

* Modified regular expression for Hospital Name

* Modified regular expression for Hospital Name for bigger lengths

* Updated Medical Faker Test removed static tests
2018-09-28 10:13:05 +10:00
Denny Abraham Cheriyan
c1d3e80091 Port over dogs from stympy/faker (#310) 2018-08-13 10:20:02 +10:00
Leonardo Ferreira
33a1aa0801 Options#option receive and return generic varargs (#306) 2018-08-08 08:40:37 +10:00
Jose
d7409c8375 Remove whitespaces from usernames (#296) (#297)
* Remove whitespaces from usernames (#296)

Some languages include compound names (spanish and portugese for
example) and that breaks usernames validation

* Remove noise from my previous commit

Accidentally cleaned the entire file...
2018-08-07 10:01:08 +10:00
Taylor Wilson
45c476376e Add more Faker classes (#276)
* Add more Faker classes

* add unit tests for new classes
2018-05-24 10:02:33 +10:00
Pascal Schumacher
c07f01f063 Update snakeyaml to version 1.20 (#290)
* Update snakeyaml to version 1.20

* CurrencyTest#testName: fix regex
2018-04-10 04:09:58 +10:00
Bruno P. Kinoshita
ea60ee3cbf Use month values between 0-11 for GregorianCalendar (#243)
* Use month values between 0-11 for GregorianCalendar

* Update tests to match the changes to GregorianCalendar's use
2018-04-10 04:09:12 +10:00
Cory Veilleux
96c62f8f0c Porting over Lebowski faker from stympy/faker. (#287)
* Porting over Lebowski faker from stympy/faker.

* Adding FakerIT test.
2018-03-27 11:45:54 +02:00
Mohamed Hashi
be0504e992 feat(currency): Port currency data from ruby gem (#285)
* feat(currency): Port currency data from ruby gem

* fix(currency test): Regex for currency.name test did not allow for 'Kuwaiti Dinar'
2018-03-15 12:38:05 +01:00
Serge Bishyr
44cc4ec091 Add Weather Faker class (#280)
* Add weather descriptions

* Add random temperature

* Add Ukrainian and Russian weather and temperature data

* Update README

* Add generator for temperature in a range

* Add Weather class to IT tests
2018-02-15 10:32:17 +11:00
Taylor Wilson
838c1fe2d7 Add support for random avatar urls (#274)
* Add support for random avatar urls

* Replace UrlValidator with Hamcrest matcher

* Fix #275 uuid regex pattern matcher

* Add repeat annotation to avatar test
2017-12-17 11:38:35 +11:00
Dennis
644fda206d Add UUID to faker (#269)
* Add faker for uuid

* Add javadoc
2017-12-16 17:49:26 +11:00
shortstacked
5434db823e Adding overloaded method to allow a specific credit card format to be returned (#266)
* Adding overloaded method to allow a specific credit card format to be returned.
Added unit test.

* Fixing brace formatting.

* Brace yourselves for another commit.

* I think I've got them all now!
2017-11-17 21:30:45 +11:00
Pascal Schumacher
f698e1da11 use new and updated .yml files from ruby faker (#262)
* use new and updated .yml files from ruby faker

* fix WitcherTest#testWitcher regex

* fix PokemonTest#name regex
2017-10-24 10:04:29 +11:00
Bartek Szymański
13cba3aadc Witcher added (#251)
* Witcher added

* Regexp in unit tests fixed
2017-09-25 08:17:26 +10:00
Pascal Schumacher
6dd2c088b7 unify formatting of tests (remove duplicate blank lines, add missing blank lines...) (#240) 2017-06-19 10:29:53 +10:00
Pascal Schumacher
48a35bb3d9 remove unnecessary throw declaration from test methods (#239) 2017-06-19 10:22:57 +10:00
Mantas Domaševičius
fa5b4da233 Can acquire Faker instance via static utility methods (#237) 2017-06-09 16:45:43 +10:00
Luka
37e702c97d Add Matz (#234) 2017-06-01 16:07:09 +10:00
Luka
a7768e23f4 Add RickAndMorty (#233) 2017-05-31 10:21:00 +10:00
Luka
c8b6823b33 Add Yoda (#232) 2017-05-30 13:42:09 +10:00
Luka
d3db25d4bd Add TwinPeaks (#231) 2017-05-25 15:36:47 +10:00
Luka
4b7f018d84 Add Hipster (#230) 2017-05-25 09:49:23 +10:00
Luka
a38088dafa Add Job class (#229)
* Add Job class

* Fix README: Jobs -> Job
2017-05-25 09:34:26 +10:00
Pascal Schumacher
f5159d7655 minimal clean-up of NumberTest (#228) 2017-05-22 08:38:00 +10:00
Pascal Schumacher
be5b957082 remove unused import statements (#227) 2017-05-22 08:37:23 +10:00
Luka
34ee92a828 Add Friends class (#223) 2017-05-22 08:25:13 +10:00
Luka
3c932b95c6 Add Esports class (#222) 2017-05-19 20:14:12 +10:00
Luka
f8fa4af927 Add RockBand (#220)
* Add RockBand

* Fix no new line at the end of RockBandTest class

* Rever en.yml change: rock_band.name -> rock_band.names

* Fix testing the wring class
2017-05-19 15:50:04 +10:00
c3ccl3ston
81d9e7635a Add zipCodeByState to Address faker service that returns a valid US state zipcode (#221) 2017-05-19 10:25:00 +10:00
Luka
511a273341 Add HarryPotter and update README (#219) 2017-05-18 13:15:03 +10:00
Luka
14ba9a05bc Add Zelda (#218) 2017-05-17 20:30:56 +10:00
Luka
dac3d3fb06 Add LordOfTheRings (#217) 2017-05-17 07:53:34 +10:00
Ricky
dc631bc3dd deleted unused test enum 2017-04-24 10:18:41 +10:00
Ricky
13841611e6 moved the random service methods into the options class 2017-04-21 16:45:30 +10:00
Ricky
abec123e83 Merge branch 'feature/random-collection-element' of git://github.com/topicusoverheid/java-faker into topicusoverheid-feature/random-collection-element 2017-04-21 16:37:49 +10:00
Ricky
694ea43e2b closes #214 around boundary conditions of numberBetween 2017-04-21 13:36:05 +10:00
Dennis Schroer
1f8c8b2457 Add test for random collection element methods 2017-04-10 15:46:00 +02:00
André Miranda
bff9eee757 Add birthday generator (#209) 2017-03-27 10:26:12 +11:00
Pascal Schumacher
69fad8f8da add Artist (#205) 2017-03-13 08:33:40 +11:00
Pascal Schumacher
8caa5a5841 add Music#chord (#204) 2017-03-13 08:32:46 +11:00
Pascal Schumacher
061d3a5ba0 add Space#meteorite (#203) 2017-03-13 08:32:29 +11:00
Pascal Schumacher
2f0e6d0e75 update test dependency versions (#202)
remove usage of javax.annotation.Nullable in tests, as this transitive test dependency does not exit anymore
2017-03-13 08:31:50 +11:00
Pascal Schumacher
f6a2339131 use updated yml files from (ruby) faker (#201)
* use updated yml files from (ruby) faker

* add demographic
2017-03-13 08:31:10 +11:00
Pascal Schumacher
9500fc2395 FakeValuesServiceTest: simplify some assertions (#197) 2017-03-01 16:49:07 +11:00
Pascal Schumacher
e6333c20b6 minimal improvement of FakerIt#testAllMethodsThatReturnStringsActuallyReturnStrings (#196) 2017-02-20 10:24:58 +11:00
Trever Shick
0acfd1e823 Fixes #194 handle slash format regex in yml (#195)
* Fixes #194 handle slash format regex in yml

Handle slash format (ex. /[a-b]+/) regular expressions in .yml files.
This is handled internally in the safeFetch method by converting the statement from the /x/ format to
the #{regexify 'x'} directive format.

* Addresses #194 further.  Adds slash checks to FakerIT
2017-02-20 09:27:37 +11:00