2 * Copyright (c) 2017 Pantheon Technologies s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.netconf.topology.singleton.impl.actors;
11 import akka.actor.ActorSystem;
12 import akka.testkit.TestActorRef;
13 import akka.testkit.javadsl.TestKit;
14 import java.util.concurrent.TimeUnit;
15 import org.junit.AfterClass;
16 import org.junit.Before;
17 import org.mockito.Mock;
18 import org.mockito.MockitoAnnotations;
19 import org.opendaylight.controller.md.sal.dom.api.DOMDataWriteTransaction;
20 import scala.concurrent.duration.Duration;
22 public class WriteTransactionActorTest extends WriteTransactionActorTestAdapter {
23 private static ActorSystem system = ActorSystem.apply();
26 private DOMDataWriteTransaction mockWriteTx;
30 MockitoAnnotations.initMocks(this);
31 init(mockWriteTx, system, TestActorRef.create(system,
32 WriteTransactionActor.props(mockWriteTx, Duration.apply(2, TimeUnit.SECONDS))));
36 public static void staticTearDown() {
37 TestKit.shutdownActorSystem(system, Boolean.TRUE);