powerMock和mockito powermock和mockito都是做mock的框架,powermock在mockito的基础上扩展而来,支持mockito的操作(也支持别的mock框架比如easyMock).因此在maven引入powermock的时候,需要引mockito的包.powermock和mockito版本上要配合着使用.powermock在mockito的基础上,扩展了对static class, final class,constructor,private method等…