Bug 2061 - DropRate and BurstSize swapped - fixed tests 11/11511/1
authorDevin Avery <devin.avery@brocade.com>
Wed, 24 Sep 2014 07:01:44 +0000 (03:01 -0400)
committerDevin Avery <devin.avery@brocade.com>
Wed, 24 Sep 2014 07:01:44 +0000 (03:01 -0400)
commit0145bcff34942fadaa4a6c4182104bd9937fa08e
treef0b464cf081c4370fbea26026efc6a4dac10ad6a
parent34a62a264f998ea06ad723bec84eff0c1c322b0b
Bug 2061 - DropRate and BurstSize swapped - fixed tests

This bug fixes an issue where the dropRate and burst size were swapped in code.
This bug also fixes the unit tests which tested for the bug instead. Made the test use hard-coded constants so inputs matched expected outputs which then caught the bug.

Signed-off-by: Devin Avery <devin.avery@brocade.com>
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/MeterConvertor.java
openflowplugin/src/test/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/MeterConvertorTest.java