Bug 5483 - added support for num values in rules
[groupbasedpolicy.git] / neutron-mapper / src / test / java / org / opendaylight / groupbasedpolicy / neutron / mapper / mapping / rule / SecRuleEntityDecoderTest.java
index e73f50129b63a45b10c40b570b216d8513326df4..ccda7b17dc819a3554c5a47884b9e2cc105d6705 100644 (file)
@@ -656,6 +656,12 @@ public class SecRuleEntityDecoderTest {
         Assert.assertEquals(IpProtoClassifierDefinition.ICMP_VALUE, SecRuleEntityDecoder.getProtocol(secRule));
     }
 
+    @Test
+    public final void testGetProtocol_numValue() {
+        secRule.setSecurityRuleProtocol("199");
+        Assert.assertEquals(Long.valueOf(199) , SecRuleEntityDecoder.getProtocol(secRule));
+    }
+
     @Test
     public final void testGetProtocol_protoNull() {
         secRule.setSecurityRuleProtocol(null);