I\'m working on a Spring Boot project. I\'m writing a "Unit Test" code based on "TDD," which is a little bit difficult.
@SpringBootTest l
like @MarkBramnik says if you're intent is to write a unit test you have to mock other components that uses the specific one you're testing. @SpringBootTest is recomended if you want to write an integration test that simulated the application process. @ContextConfiguration is used when you @Autowired a component in you're unit test and you have to set to the configuration that class, or the class where you created the bean