For some testing purposes I would like to predict exactly what System.currentTimeMillis() will return. Is there any way in which I can freeze or manually set what w
System.currentTimeMillis()
Is it possible to freeze System.currentTimeMillis()? NO
You need to use a sort of wrapper around that time value if you want your code to be able to be tested