i currently study more in deep the @TestConfiguration and i wonder why using this combo..
@TestConfiguration
public class TestConfig {
// some bean definitions
and then using
@SpringBootTest
@Import(TestConfig.class)
class UsingImport {
@Autowired
ConfigBean configBean;
// some code
and not using the classic @Configuration, in the src/test, as it is totally legal do it. Why is the real purpose of @TestConfiguration, as we can do the same with @Configuration ?
Am i wrong ?