Mocking outer class with Mockito

前端 未结 0 1027
挽巷
挽巷 2021-01-26 17:36

I am trying to mock outer class but always get NullPointerException. I have class:

@Service
public class ProductService {
    @Autowired
    public ProductService         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题