How to solve null pointer exception in spring boot test?
I have two simple Consumer components and one Consumer service. Then I want to write unit test for this service. But always got null pointer exception. I have tried: Autowire construction, Autowire …