3 ms·
Part of the problem is Java environment itself, other platforms allows exporting single instances (import an actual singleton), so there is not so much need for
by cztomsik 9y ago
Part of the problem is Java environment itself, other platforms allows exporting single instances (import an actual singleton), so there is not so much need for DI
Also, you don't need to swap everything, your application (in fact) has hard dependencies. And mocking everything is not always the best way to test system (sometimes it's totally okay to mock the whole db)