datagen
datagen copied to clipboard
Java lib that generates random data (numbers, strings, dates) - mostly to facilitate Randomized Testing.
I need to generate a string that could consist from words. I'm trying the following: ```java length(10).with(oneOf(" ,")).english() ``` but sometimes it generates strings that start or end with space...
It would be great to have javadocs published somewhere.
https://github.com/qala-io/datagen/blob/523d0007a339ff8f7e4453c3ffcd063f4dfced6f/datagen/src/main/java/io/qala/datagen/RandomShortApi.java#L292-L310 I think that there 2 errors: - `Set sampleMultiple` has an incorrect comment "@return a random element from the collection" because it doesn't return an element but a set...
It would be great to have a method for generating random URLs. We can start from just a random string with arbitrary length and later add API for control possible...