使用Mockito的文章踩了半天坑,发现下面的文章说的很清晰,收藏下。 Mockito的使用(二)——@InjectMocks、@Spy、@Mock https://blog.csdn.net/u011047968/article/details/91970070