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.controller.cluster.access.commands;
10 import akka.actor.ActorRef;
11 import akka.actor.ActorSystem;
12 import akka.testkit.TestProbe;
13 import org.opendaylight.controller.cluster.access.concepts.ClientIdentifier;
14 import org.opendaylight.controller.cluster.access.concepts.FrontendIdentifier;
15 import org.opendaylight.controller.cluster.access.concepts.FrontendType;
16 import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier;
17 import org.opendaylight.controller.cluster.access.concepts.MemberName;
18 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
20 public class AbortLocalTransactionRequestTest extends AbstractTransactionRequestTest<AbortLocalTransactionRequest> {
22 private static final FrontendIdentifier FRONTEND = FrontendIdentifier.create(
23 MemberName.forName("test"), FrontendType.forName("one"));
24 private static final ClientIdentifier CLIENT = ClientIdentifier.create(FRONTEND, 0);
25 private static final LocalHistoryIdentifier HISTORY = new LocalHistoryIdentifier(CLIENT, 0);
26 private static final TransactionIdentifier TRANSACTION = new TransactionIdentifier(HISTORY, 0);
28 private static final ActorSystem SYSTEM = ActorSystem.create("test");
29 private static final ActorRef ACTOR_REF = TestProbe.apply(SYSTEM).ref();
31 private static final AbortLocalTransactionRequest OBJECT = new AbortLocalTransactionRequest(TRANSACTION, ACTOR_REF);
34 AbortLocalTransactionRequest object() {