X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fmessaging%2FAbortSlicingTest.java;fp=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fmessaging%2FAbortSlicingTest.java;h=4441857f39c7fab27cd357f34ae5bcb06b993922;hb=3582bb6dbc506b0c79dd3e4b4f791f4e17cd3103;hp=0000000000000000000000000000000000000000;hpb=90ba78e0575edaa56610eeed936c03261839f2d2;p=controller.git diff --git a/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/messaging/AbortSlicingTest.java b/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/messaging/AbortSlicingTest.java new file mode 100644 index 0000000000..4441857f39 --- /dev/null +++ b/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/messaging/AbortSlicingTest.java @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2017 Inocybe Technologies 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.messaging; + +import static org.junit.Assert.assertEquals; + +import org.apache.commons.lang.SerializationUtils; +import org.junit.Test; + +/** + * Unit tests for AbortSlicing. + * + * @author Thomas Pantelis + */ +public class AbortSlicingTest { + + @Test + public void testSerialization() { + AbortSlicing expected = new AbortSlicing(new StringIdentifier("test")); + AbortSlicing cloned = (AbortSlicing) SerializationUtils.clone(expected); + assertEquals("getIdentifier", expected.getIdentifier(), cloned.getIdentifier()); + } +}