X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fnode%2Futils%2Fserialization%2FValueTypeTest.java;h=10bf09073984d5a2560f1b60f3dbd00d8f5048c1;hp=1280559c00c1ecd26d2ce621ddb64e64479f6263;hb=4e696d9795fe7eef40369c05c340d137394126f3;hpb=014ab8770cfe40cf0ce1f2c88e0b0666429c760c diff --git a/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/datastore/node/utils/serialization/ValueTypeTest.java b/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/datastore/node/utils/serialization/ValueTypeTest.java index 1280559c00..10bf090739 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/datastore/node/utils/serialization/ValueTypeTest.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/datastore/node/utils/serialization/ValueTypeTest.java @@ -1,25 +1,34 @@ +/* + * Copyright (c) 2014, 2015 Cisco Systems, Inc. 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.datastore.node.utils.serialization; import static org.junit.Assert.assertEquals; + import org.junit.Test; public class ValueTypeTest { @Test - public void testGetSerializableType(){ - byte[] b = new byte[10]; - b[0] = 1; - b[2] = 2; + public void testGetSerializableType() { + byte[] bytes = new byte[10]; + bytes[0] = 1; + bytes[2] = 2; - ValueType serializableType = ValueType.getSerializableType(b); + ValueType serializableType = ValueType.getSerializableType(bytes); assertEquals(ValueType.BINARY_TYPE, serializableType); } @Test - public void testNullType(){ + public void testNullType() { ValueType serializableType = ValueType.getSerializableType(null); assertEquals(ValueType.NULL_TYPE, serializableType); assertEquals(null, ValueType.NULL_TYPE.deserialize("")); } -} \ No newline at end of file +}