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 org.junit.Assert;
11 import org.junit.Test;
12 import org.opendaylight.controller.cluster.access.concepts.AbstractRequestProxyTest;
13 import org.opendaylight.controller.cluster.access.concepts.Request;
15 public class TransactionDoCommitRequestProxyV1Test extends AbstractRequestProxyTest<TransactionDoCommitRequestProxyV1> {
16 private static final TransactionDoCommitRequest REQUEST = new TransactionDoCommitRequest(
17 TRANSACTION_IDENTIFIER, 0, ACTOR_REF);
18 private static final TransactionDoCommitRequestProxyV1 OBJECT = new TransactionDoCommitRequestProxyV1(REQUEST);
21 public TransactionDoCommitRequestProxyV1 object() {
26 public void createRequestTest() {
27 final Request request = object().createRequest(TRANSACTION_IDENTIFIER, 0, ACTOR_REF);
28 Assert.assertNotNull(request);