At some point every developer comes to the point where he needs larger amounts of data. One OpenSource library I like to use is Mockneat.

The Mockneat library offers an easy to read API to generate Json, XML, CSV, SQL and whole POJO’s. The nice thing about it is that you can generate valid data with little effort.

Just a foretaste of what Mockneat can generate without much effort:

mockneat dataset

Should something be missing nevertheless times I soak also gladly on

mock.regex("([LO]){2}\\\d{6}\$")

You can use a Regular expression to generate a value that fits into the regex.

There are plenty of code examples, just have a look at Examples or also visits the project on Github directly.