Bug 7800 - Implement agent RPCs for Yang notification testing
[controller.git] / opendaylight / md-sal / cds-access-api / src / test / java / org / opendaylight / controller / cluster / access / commands / AbstractTransactionSuccessTest.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.access.commands;
9
10 import org.opendaylight.controller.cluster.access.concepts.ClientIdentifier;
11 import org.opendaylight.controller.cluster.access.concepts.FrontendIdentifier;
12 import org.opendaylight.controller.cluster.access.concepts.FrontendType;
13 import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier;
14 import org.opendaylight.controller.cluster.access.concepts.MemberName;
15 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
16
17 public abstract class AbstractTransactionSuccessTest<T extends TransactionSuccess> {
18     private static final FrontendIdentifier FRONTEND_IDENTIFIER = FrontendIdentifier.create(
19             MemberName.forName("test"), FrontendType.forName("one"));
20     private static final ClientIdentifier CLIENT_IDENTIFIER = ClientIdentifier.create(FRONTEND_IDENTIFIER, 0);
21     private static final LocalHistoryIdentifier HISTORY_IDENTIFIER = new LocalHistoryIdentifier(
22             CLIENT_IDENTIFIER, 0);
23
24     protected static final TransactionIdentifier TRANSACTION_IDENTIFIER = new TransactionIdentifier(
25             HISTORY_IDENTIFIER, 0);
26 }