I am writing some tests in spring boot. I want to write all types of tests. Such as unit test, integration test, component test, microservice test. How can I do it?
I wrote unit tests, But I could not write other tests. When I wanted to write integration tests, I faced some problems. The problems with dependency injection. I have a service class, the service class contains multiple dependencies(Other services, these other services contain other services and so on). How can I test the service layer? Do I need mocking or working with real beans?