I'm starting on testing applications in general and I want to create several tests to learn Mockito in Spring. I've been reading several information but I have some general doubts I'd like to ask.
- I have seen come Mockito tests and they annotate the test of the class with: @RunWith(MockitoJUnitRunner.class) while in the Spring documentation it is used @RunWith(SpringJUnit4ClassRunner.class). I don't know what's the difference between them and which one should I use for a Spring application where tests use Mockito.
- As I haven't seen any real application that has test I'd like to know typical test that a developer would do. For example in a typical CRUD application for users (users can be created, updated...) can anyone a usual test that it would be done.
Thanks.