Integration Tests With Spring

Unit tests of your project created with Spring, you should not depend on Spring, as unit tests must not depend on external dependencies and Spring is an external dependency. These dependencies should be stubbed or mocked instead. However, Spring provides support for integration testing with configurations, profiles and databases. These support-classes are located in spring-test.jar…