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 TransactionPreCommitRequestProxyV1Test
16 extends AbstractRequestProxyTest<TransactionPreCommitRequestProxyV1> {
17 private static final TransactionPreCommitRequest REQUEST = new TransactionPreCommitRequest(
18 TRANSACTION_IDENTIFIER, 0, ACTOR_REF);
19 private static final TransactionPreCommitRequestProxyV1 OBJECT = new TransactionPreCommitRequestProxyV1(REQUEST);
22 public TransactionPreCommitRequestProxyV1 object() {
27 public void createRequestTest() {
28 final Request request = object().createRequest(TRANSACTION_IDENTIFIER, 0, ACTOR_REF);
29 Assert.assertNotNull(request);