Configuring base package for component scan in Spring boot test

Good to add the test config above I have the following in test config and any test case. I am new to spring boot test but it work. Let me know, if I am wrong.

    public class TestConfig {
    @SpringBootTest(classes= TestConfig.class)
    public class DBDmoTest {

        PartyRepository partyRepository;
        public void test(){
            Assert.assertNull(partyRepository.findByEmailIgnoreCase("[email protected]"));

Leave a Comment