Oleg Atamanenko

thoughts about programming

Category: junit

Initializing Mockito @Mocks with JUnit @Rule

In this post I will show how one can implement custom JUnit @Rule. As an example let’s take Mockito and implement custom rule which will initialize Mocks in test class.

Continue Reading…