Rework bit-copying functions and re-enable tests 01/78101/6
authorStephen Kitt <skitt@redhat.com>
Fri, 23 Nov 2018 16:03:17 +0000 (17:03 +0100)
committerArunprakash D <d.arunprakash@ericsson.com>
Thu, 24 Jan 2019 08:34:48 +0000 (08:34 +0000)
commite0e6700ef1e523a42e31c0baf955202b48f74ad2
tree4386b1be0c45755646c93abb2a702a4dfa096f5d
parent774fe046a797d5152d94fc36094af188d8de9100
Rework bit-copying functions and re-enable tests

This patch addresses the discrepancy between the insertBits() tests
and setBytes(), by making the source of the bits explicit (MSB or
LSB).

Change-Id: Ib88398b08730149dd4bb45382c84732dfbd6903b
Signed-off-by: Stephen Kitt <skitt@redhat.com>
libraries/liblldp/src/main/java/org/opendaylight/openflowplugin/libraries/liblldp/BitBufferHelper.java
libraries/liblldp/src/main/java/org/opendaylight/openflowplugin/libraries/liblldp/LLDP.java
libraries/liblldp/src/main/java/org/opendaylight/openflowplugin/libraries/liblldp/Packet.java
libraries/liblldp/src/test/java/org/opendaylight/openflowplugin/libraries/liblldp/BitBufferHelperTest.java