rspec/rules/S5977/java/comments-and-links.adoc

4 lines
429 B
Plaintext

=== on 4 Sep 2020, 11:46:33 Nicolas Harraudeau wrote:
Note that https://phauer.com/2019/modern-best-practices-testing-java/#use-parameterized-tests[Modern Best Practices for Testing in Java - Philipp Hauer] also mentions ``++Instant.now()++`` as a source or randomness, however there can be valid use cases for using the current time, such as timing some operation. Forbidding ``++Instant.now()++`` would raise False Positives.