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
8 package org.opendaylight.netconf.topology.singleton.impl.actors;
10 import akka.actor.ActorSystem;
11 import akka.testkit.TestActorRef;
12 import akka.testkit.javadsl.TestKit;
13 import java.time.Duration;
14 import org.junit.jupiter.api.AfterAll;
15 import org.junit.jupiter.api.BeforeEach;
16 import org.junit.jupiter.api.extension.ExtendWith;
17 import org.mockito.Mock;
18 import org.mockito.junit.jupiter.MockitoExtension;
19 import org.opendaylight.mdsal.dom.api.DOMDataTreeWriteTransaction;
21 @ExtendWith(MockitoExtension.class)
22 class WriteTransactionActorTest extends WriteTransactionActorTestAdapter {
23 private static ActorSystem system = ActorSystem.apply();
26 private DOMDataTreeWriteTransaction mockWriteTx;
30 init(mockWriteTx, system, TestActorRef.create(system,
31 WriteTransactionActor.props(mockWriteTx, Duration.ofSeconds(2))));
35 static void staticTearDown() {
36 TestKit.shutdownActorSystem(system, true);