mockito进行单元测试是已经加上@Mock的service为null mockito进行单元测试是已经加上@Mock的service为null 解决问题: 将PowerMockRunner换成MockitoJUnitRunner