X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fcommons%2Fliblldp%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fpacket%2FBitBufferHelperTest.java;h=0ba5476e52cb5141d9f345670aff36a03e526177;hp=07fbf0599b889d6281e4f7e0b1819912969ea711;hb=123afd8b015173c459f4937c84eb2e91286f65a8;hpb=971b179000ef1cc56699de35061cf6f97d4cf36f diff --git a/opendaylight/commons/liblldp/src/test/java/org/opendaylight/controller/sal/packet/BitBufferHelperTest.java b/opendaylight/commons/liblldp/src/test/java/org/opendaylight/controller/sal/packet/BitBufferHelperTest.java index 07fbf0599b..0ba5476e52 100644 --- a/opendaylight/commons/liblldp/src/test/java/org/opendaylight/controller/sal/packet/BitBufferHelperTest.java +++ b/opendaylight/commons/liblldp/src/test/java/org/opendaylight/controller/sal/packet/BitBufferHelperTest.java @@ -1,6 +1,5 @@ - /* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * 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, @@ -9,8 +8,7 @@ package org.opendaylight.controller.sal.packet; -import junit.framework.Assert; - +import org.junit.Assert; import org.junit.Test; import org.opendaylight.controller.liblldp.BitBufferHelper; @@ -297,7 +295,7 @@ public class BitBufferHelperTest { Assert.assertTrue(data_sh[0] == (byte) 255); Assert.assertTrue(data_sh[1] == (byte) 128); - data_sh = BitBufferHelper.toByteArray((int) 511, len); + data_sh = BitBufferHelper.toByteArray(511, len); Assert.assertTrue(data_sh[0] == (byte) 255); Assert.assertTrue(data_sh[1] == (byte) 128);