3 ms·
This has been doable in static languages for a long time now, as well.
by taeric 4y ago
This has been doable in static languages for a long time now, as well.
- b3morales 4y agoDepends what you mean by "static". Swapping out a method or class implementation at runtime is pretty inherently a dynamic task.
- taeric 4y agoApologies, I assumed "static typed" was a fairly safe assumption.
- abernard1 4y agoYou are correct, and for some reference, Mockito 1.0 came out in 2014. @Mock, @InjectMocks, and the ability to wire up an entire dependency tree has been something Typescripters have still not perfected like crusty Java devs.