vick victor

Greenhorn
+ Follow
since Aug 05, 2020
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by vick victor

I have a private inner class and it’s call in method is like:
Return service.get(new innerClass(),param)

How do I ensure this return statement returns my mocked object :
I want some thing like this
Def List list=[someObject]
Mockedservice.get(mocked inner, param)>>list
1 year ago
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
1 year ago
How to either avoid it being called or pass the arguments to its run method
1 year ago