Convert mdsal-dom-spi to a JPMS module
[mdsal.git] / dom / mdsal-dom-spi / src / test / java / org / opendaylight / mdsal / dom / spi / store / ForwardingDOMStoreThreePhaseCommitCohortTest.java
index 5edaec2cc8559f669b8608ef7d61b7ce5dfcc1b4..d8bba2232843b62157bdedb4f8bdfaaeaaa5159a 100644 (file)
@@ -9,20 +9,19 @@ package org.opendaylight.mdsal.dom.spi.store;
 
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.verify;
-import static org.mockito.MockitoAnnotations.initMocks;
 
 import org.junit.Test;
+import org.junit.runner.RunWith;
 import org.mockito.Mock;
+import org.mockito.junit.MockitoJUnitRunner;
 
+@RunWith(MockitoJUnitRunner.StrictStubs.class)
 public class ForwardingDOMStoreThreePhaseCommitCohortTest extends ForwardingDOMStoreThreePhaseCommitCohort {
-
     @Mock(name = "domStoreThreePhaseCommitCohort")
-    private DOMStoreThreePhaseCommitCohort domStoreThreePhaseCommitCohort;
+    public DOMStoreThreePhaseCommitCohort domStoreThreePhaseCommitCohort;
 
     @Test
     public void basicTest() throws Exception {
-        initMocks(this);
-
         doReturn(null).when(domStoreThreePhaseCommitCohort).canCommit();
         this.canCommit();
         verify(domStoreThreePhaseCommitCohort).canCommit();