11 Commits

Author SHA1 Message Date
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
Dennis
3179b206b7 Make fakers extendible by making constructors protected (#213) 2017-04-21 09:06:59 +10:00
Trever Shick
f574317642 Fix locale chaining. Add yml only resolution. (#133)
* Fix locale chaining. Add yml only resolution.

* Remove assumption, it may be causing travis failures.

* Fix file encoding

* Fix the Integration test for pt locale

* Remove deps change to README.md

* Replace the resolve() method on Faker, uncomment some tests

* Rename unit test to make more sense

* Uncomment commented out tests
2016-10-11 21:41:22 +11:00
Trever Shick
a14be321bc Add javadoc for Name (#132)
Closes DiUS/java-faker#131
2016-10-05 14:05:55 +11:00
Michael Schechter
f05ad85f9c Updated to commons-lang3 (#119)
* Updated to commons-lang3

Updated dependency; changed RandomService to use Random directly

* Fixed bad import

Updated missed import
2016-08-12 14:05:03 +10:00
Roman Isko
ffdf7fd337 implemented username() method that returns username depending on first and last name (#107) 2016-06-01 08:43:19 +10:00
Pascal Schumacher
1488435f7c Extend name (#86)
* added unit test for NameTest

* added Name#nameWithMiddle

* added Name#title
2016-04-27 05:54:03 +10:00
Ricky
ecba78d999 Getting JavaFaker to use yml files from ruby faker.
Involves adding in all yml files from ruby faker
Changed en.yml slightly to include internet/images that weren't in the ruby one
Changed credit card values in en.yml file to as JavaFaker doesn't do regexify
Added resolve method in FakeValuesService to deal with resolution of properties that is in the
ruby yml files. This is instead of the simplified composite method.
Added safeFetch method in FakeValueService to deal with null/empty string methods
Added the DefaultingFakeValuesService to deal with defaulting properties to the english locale
2016-04-13 06:48:37 +10:00
Ricky Yim
fafa5ec340 moved service to their own package 2014-04-25 10:04:59 +10:00
Ricky
c68b61da47 added fullname method and updated readme.md 2014-04-23 17:24:34 +10:00
Ricky
f663405c0e refactored to break out to different classes 2014-04-23 16:04:43 +10:00