X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fcds-access-api%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Faccess%2Fcommands%2FTransactionPreCommitRequestProxyV1Test.java;fp=opendaylight%2Fmd-sal%2Fcds-access-api%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Faccess%2Fcommands%2FTransactionPreCommitRequestProxyV1Test.java;h=693b05d986c833bbc3ead77ba4e167b9451cc53d;hb=f052c433a17a69c45642f9d8d246c6340fbaffab;hp=0000000000000000000000000000000000000000;hpb=61791b72e0137609d15c18efc64d227b6a4006ec;p=controller.git diff --git a/opendaylight/md-sal/cds-access-api/src/test/java/org/opendaylight/controller/cluster/access/commands/TransactionPreCommitRequestProxyV1Test.java b/opendaylight/md-sal/cds-access-api/src/test/java/org/opendaylight/controller/cluster/access/commands/TransactionPreCommitRequestProxyV1Test.java new file mode 100644 index 0000000000..693b05d986 --- /dev/null +++ b/opendaylight/md-sal/cds-access-api/src/test/java/org/opendaylight/controller/cluster/access/commands/TransactionPreCommitRequestProxyV1Test.java @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2017 Pantheon Technologies s.r.o. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ +package org.opendaylight.controller.cluster.access.commands; + +import org.junit.Assert; +import org.junit.Test; +import org.opendaylight.controller.cluster.access.concepts.AbstractRequestProxyTest; +import org.opendaylight.controller.cluster.access.concepts.Request; + +public class TransactionPreCommitRequestProxyV1Test + extends AbstractRequestProxyTest { + private static final TransactionPreCommitRequest REQUEST = new TransactionPreCommitRequest( + TRANSACTION_IDENTIFIER, 0, ACTOR_REF); + private static final TransactionPreCommitRequestProxyV1 OBJECT = new TransactionPreCommitRequestProxyV1(REQUEST); + + @Override + public TransactionPreCommitRequestProxyV1 object() { + return OBJECT; + } + + @Test + public void createRequestTest() { + final Request request = object().createRequest(TRANSACTION_IDENTIFIER, 0, ACTOR_REF); + Assert.assertNotNull(request); + } +} \ No newline at end of file