Closed zalintyre closed 6 months ago
What problem does it solve?
It mainly solves the problem of unit-testing separate components (units) instead of having to test the whole call-chain. This would be more of an integration test.
We don't have this problem
Coupling of components can be lowered using a dependency injection mechanism. I'd like to propose the use of CDI (Contexts and dependency injection). It is entirely usable with Java SE:
https://www.baeldung.com/java-ee-cdi