Bug 1254 - OFP test coverage increase 87/8487/3
authorMartin Bobak <mbobak@cisco.com>
Mon, 30 Jun 2014 13:52:32 +0000 (15:52 +0200)
committerMartin Bobak <mbobak@cisco.com>
Wed, 2 Jul 2014 11:19:33 +0000 (13:19 +0200)
commitefe755fd8e7d96339efa3df4eb6ccbc8989a7866
treee709e5add872576f4c0ff0d0d3b3296b773c86ec
parentd1d0bd8874cf6b3b1b5f1279467b8bc83733e0a8
Bug 1254 - OFP test coverage increase

- ByteUtil is final with private constructor instead of being abstract
- ByteUtil#bytesToUnsignedInt expects its paramater to be exactly 4 bytes long
- ByteUtil#bytesToUnsignedShort expects its parameter to be exactly 2 bytes long
- ByteUtil tests added

Change-Id: I7820bb0e0c33070317c08c1f3fd9a65ce99f6f09
Signed-off-by: Martin Bobak <mbobak@cisco.com>
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/util/ByteUtil.java
openflowplugin/src/test/java/org/opendaylight/openflowplugin/openflow/md/util/ByteUtilTest.java [new file with mode: 0644]