java-faker
java-faker copied to clipboard
Add support of methods with varargs and #{options.option ...}
There 2 issues:
- Current code can not resolve the code with varargs e.g.
Options.option - Options does not have
optionmethod withStringvarargs which is implied byFakeValuesService
This PR adds check if there is varargs in method args and supports it, also adds Options.option with String varargs to make it working like
#{options.option '12','345','89','54321'}
Hi @snuyanzin , would it be possible to send this PR to Datafaker.net too? I've merged and released your previous PR as part of datafaker 1.1.0 a few days ago (see https://www.datafaker.net/releases/1.1.0/) , and happy to do for this change too!
yes, sure, i will try to do it a bit later today