by tkfx · 10y ago · 0 comments
There are a bit more details about the design on our blog: http://blog.takipi.com/java-bullshifier-generate-massive-ran...
And the full source code is available on Github: https://github.com/takipi/java-bullshifier
Basically, the tool is built with Groovy (many projects use it as a scripting language for Java), and there are 4 sections to each randomly generated class:
1. Variable definition, with random types, random names, and values.
2. A section that throws exceptions, or prints to the log, according to the config settings for the rate of events. This also includes a “suicide” function that stops the execution of the program.
3. Calls the next method.
4. Random code that never runs.
There are some advanced config settings described in the Github README.md
No comments yet.