Best Practices for Testing in Java (2019)
&gt; &quot;Use Fixed Data Instead of Randomized Data
Avoid randomized data as it can lead to toggling tests which can be hard to debug and omit error messages that make tracing the error back to the code harder.
They will create highly reproducible tests, which are easy to debug and create error messages that can be easily traced back to the relevant line of code.&quot;<p>Good article, but I don&#x27;t get this one at all; it almost seems like an anti-pattern. Choosing fixed data instead of random because the results are more &quot;reproducible&quot; seems to miss the point. If random data eventually helps uncover more bugs, then it&#x27;s worth using!