package io.github.tobyhs.weatherweight.test;

import org.junit.Before;
import org.mockito.MockitoAnnotations;

/**
 * Base abstract test class to hold common hooks
 */
public abstract class BaseTestCase {
    @Before
    public void initMocks() {
        MockitoAnnotations.initMocks(this);
    }
}

@@ -56,21 +56,19 @@
 g.junit.
-Befor
+Rul
 e;%0Aimpor
@@ -81,33 +81,110 @@
 mockito.
+junit.
 Mockito
-Annotation
+JUnit;%0Aimport org.mockito.junit.MockitoRule;%0Aimport org.mockito.quality.Strictnes
 s;%0A%0A/**%0A
@@ -282,93 +282,97 @@
    @
-Before%0A    public void initMocks() %7B%0A        MockitoAnnotations.initMocks(this);%0A    %7D
+Rule public MockitoRule mockito = MockitoJUnit.rule().strictness(Strictness.STRICT_STUBS);
 %0A%7D%0A

Use a Mockito JUnit rule in BaseTestCase