Re: Using MockitoJUnitRunner.class instead of SpringJUnit4ClassRunner.class
| Newsgroups | gmane.comp.java.junit.user |
|---|---|
| Message-ID | <[email protected]> |
Ayaskant - as you have said, I too would prefer not to have to rely on an IoC container in my unit tests, whenever possible. There are some cases where it's easier to use a container, e.g. when testing JpaRepositories. Strictly speaking, you could argue that such tests should rather be called integration tests. Hope that helps! Cheers, Marc ------------------------------------ Posted by: [email protected] ------------------------------------