Re:Why Most Unit Testing is Waste [pdf]
by henrik_w on Thursday March 06, 2014 @05:16PM
(#7356992)
Not exactly the same case, but it sure is nice to be independent of calling System.getCurrentTimeMillis() in the code under test. One example of how to do it (in a simple case): "TDD, Unit Tests and the Passage of Time" http://henrikwarne.com/2013/12/08/tdd-unit-tests-and-the-pas...
[ Parent
| on HN ]
There are no comments on this comment yet.