3 ms·
In modern Java it’s pretty common to inject an application-level clock object in all components depending on time. Writing an unit test becomes easy, because yo
by ivan_gammel 3y ago
In modern Java it’s pretty common to inject an application-level clock object in all components depending on time. Writing an unit test becomes easy, because you have full control over what time is returned on each call.