@RunWith(SpringRunner.class)
@SpringBootTest
public class BankMainAppTest {
/**
* Test App load without throwing an exception.
*/
@Test
public void contextLoads() {
}//pass
@Test
public void applicationStarts() {
BankMainApp.main(new String[] {});
}//fail throw exception given below..
}
java.lang.IllegalArgumentException: Cannot instantiate factory class: org.springframework.boot.env.EnvironmentPostProcessor