2 * Copyright (c) 2021 PANTHEON.tech, 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 static org.junit.Assert.assertEquals;
12 import com.google.common.primitives.UnsignedLong;
13 import java.util.List;
14 import org.junit.Test;
15 import org.opendaylight.controller.cluster.access.ABIVersion;
17 public class SkipTransactionsRequestTest extends AbstractTransactionRequestTest<SkipTransactionsRequest> {
18 private static final SkipTransactionsRequest OBJECT = new SkipTransactionsRequest(
19 TRANSACTION_IDENTIFIER, 0, ACTOR_REF, List.of(UnsignedLong.ONE));
21 public SkipTransactionsRequestTest() {
26 public void cloneAsVersionTest() {
27 assertEquals(OBJECT, OBJECT.cloneAsVersion(ABIVersion.BORON));
31 protected void doAdditionalAssertions(final SkipTransactionsRequest deserialize) {
32 assertEquals(OBJECT.getReplyTo(), deserialize.getReplyTo());