3 ms·
On the other hand, Spring is one of those frameworks that you can probably test most of your stuff without those test fixtures and just use the annotated classe
by ElectricalUnion 3y ago
On the other hand, Spring is one of those frameworks that you can probably test most of your stuff without those test fixtures and just use the annotated classes as if they are plain classes.
That of course means you're limited to constructor based dependency injection (but most people should be using constructor based dependency injection, right? The @Autowired/@Inject "magic" rarely really helps anyone most of the time) and requires isolating side effects (and therefore those pesky side effect inducing annotations) from the rest of the business logic.