Hi,
I have controller class, abcRepository, abcService, abcServiceImplementation. abcRepository extends JPARepository. I have autowired abcService in controller class.
Now how can I use
mockito to
test my rest APIs with above structure.
Till now I tried and written test class with @Mock on AbcService and @InjectMock on controller, but while running getting error as controller as null.
What is the correct procedure to test rest api with above structure?
Please guide.