I want to use both @Autowired and @Mock. For Example, I don't want to mock conversionService, I want to autowire it and mock other services.
Asked
Active
Viewed 171 times
0
-
Did you try that? What happened? Give a [mre]. – jonrsharpe Jun 10 '20 at 15:20
-
Yes. The Autowired field is becoming null. – vinod chambole Jun 10 '20 at 17:41
-
Again, then, give a MRE. – jonrsharpe Jun 10 '20 at 17:42