In this post, we will see how to resolve Mock a function call in scala for unittesting Question: I would like to write a unittest to the function Is it possible to somehow mock Datetime.now(), so that the test result ...