DiUS / java-faker

Brings the popular ruby faker gem to Java
http://dius.github.io/java-faker
Other
4.74k stars 846 forks source link

Add access to whole data sets / entire data sets #463

Open astubbs opened 4 years ago

astubbs commented 4 years ago

I want to be able to utilise the entire data set, e.g. do something with all hospital names

Something like: Faker.instance().name().data().lastName(); // returns List of all names Faker.instance().eagerLoad(Locale.forLanguageTag("nl")).getDataSet(); // returns nested map of all loaded data set Faker.instance().eagerLoad(); // returns nested map of every available data set (yes, ~slow (not that slow - I tried a workaround))

This is useful for inspecting what's available programatically

I want this to be able to have the maximum unique data set to do large tests with.

astubbs commented 4 years ago

Awesome library BTW :)

Lance-Azrael commented 2 years ago

Hello @astubbs , our group are interested in this issue, and we will try to implement it. ---- SE_SUSTech, group: Lanrand

astubbs commented 2 years ago

oh cool! I suggest you implement it here instead: https://github.com/datafaker-net/datafaker/

Lance-Azrael commented 2 years ago

Thank you very much! I'll check out the data faker project