PowerMock vs Mockito - Java

Features given by adding PowerMock on top of the Mockito :
  • mock static, final and private methods
  • remove static initializers
  • allow mocking without dependency injection

Comments

Popular posts from this blog

Find pair whose sum is k - java

Class, Reference and Object