import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
-import org.opendaylight.controller.cluster.datastore.utils.ActorContext;
+import org.opendaylight.controller.cluster.datastore.utils.ActorUtils;
public class TransactionContextWrapperTest {
@Mock
- private ActorContext actorContext;
+ private ActorUtils actorUtils;
@Mock
private TransactionContext transactionContext;
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
- doReturn(DatastoreContext.newBuilder().build()).when(actorContext).getDatastoreContext();
+ doReturn(DatastoreContext.newBuilder().build()).when(actorUtils).getDatastoreContext();
transactionContextWrapper = new TransactionContextWrapper(MockIdentifiers.transactionIdentifier(
- TransactionContextWrapperTest.class, "mock"), actorContext, "mock");
+ TransactionContextWrapperTest.class, "mock"), actorUtils, "mock");
}
@Test