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%2FSkipTransactionsResponseTest.java;fp=opendaylight%2Fmd-sal%2Fcds-access-api%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Faccess%2Fcommands%2FSkipTransactionsResponseTest.java;h=be70ad96ea8e9353d67c4a5bf208fa41be416909;hb=abeaf223cadd818e2054b516e39c20305ea144b8;hp=0000000000000000000000000000000000000000;hpb=87979c22dfbeb25924600a7d3cc6e875edb82c5e;p=controller.git diff --git a/opendaylight/md-sal/cds-access-api/src/test/java/org/opendaylight/controller/cluster/access/commands/SkipTransactionsResponseTest.java b/opendaylight/md-sal/cds-access-api/src/test/java/org/opendaylight/controller/cluster/access/commands/SkipTransactionsResponseTest.java new file mode 100644 index 0000000000..be70ad96ea --- /dev/null +++ b/opendaylight/md-sal/cds-access-api/src/test/java/org/opendaylight/controller/cluster/access/commands/SkipTransactionsResponseTest.java @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2021 PANTHEON.tech, 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 static org.hamcrest.CoreMatchers.instanceOf; +import static org.hamcrest.MatcherAssert.assertThat; +import static org.junit.Assert.assertEquals; + +import org.junit.Test; +import org.opendaylight.controller.cluster.access.ABIVersion; + +public class SkipTransactionsResponseTest extends AbstractTransactionSuccessTest { + private static final SkipTransactionsResponse OBJECT = new SkipTransactionsResponse( + TRANSACTION_IDENTIFIER, 0); + + @Override + protected SkipTransactionsResponse object() { + return OBJECT; + } + + @Test + public void cloneAsVersionTest() { + final SkipTransactionsResponse clone = OBJECT.cloneAsVersion(ABIVersion.BORON); + assertEquals(OBJECT, clone); + } + + @Override + protected void doAdditionalAssertions(final Object deserialize) { + assertThat(deserialize, instanceOf(SkipTransactionsResponse.class)); + } +} \ No newline at end of file