My main spring boot class is:
Public class
Test implements CommandLineRunner{
Public static void main(
String args[]){
//code
}
@Override
Public void run(String... args) throws Exception{
//code
}
}
Query:
I have a service class and want to write it’s groovy test case but because of the application context spring loads the commandlinerunner and complains about not getting the values in args.
Please advise how to either provide value or prevent this class from executing