Bug 5540 - ConvertorManager base
[openflowplugin.git] / openflowplugin / src / test / java / org / opendaylight / openflowplugin / openflow / md / core / sal / convertor / match / MatchReactorTest.java
index e32dfe53b06963f815f14e8344d0f20f3d25ff0e..e2d7de2439dd85f2bc04e9613a97fa2079c23950 100644 (file)
@@ -18,7 +18,6 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.FlowModInputBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.aggregate._case.MultipartRequestAggregateBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.flow._case.MultipartRequestFlowBuilder;
-import java.math.BigInteger;
 
 /**
  * match conversion and injection test
@@ -47,7 +46,7 @@ public class MatchReactorTest {
     public void testMatchConvertorV13_flow() {
         FlowModInputBuilder target = new FlowModInputBuilder();
         MatchReactor.getInstance().convert(matchBuilder.build(),
-                OFConstants.OFP_VERSION_1_3, target, BigInteger.valueOf(1));
+                OFConstants.OFP_VERSION_1_3, target);
         Assert.assertNotNull(target.getMatch());
     }
 
@@ -58,7 +57,7 @@ public class MatchReactorTest {
     public void testMatchConvertorV10_flow() {
         FlowModInputBuilder target = new FlowModInputBuilder();
         MatchReactor.getInstance().convert(matchBuilder.build(),
-                OFConstants.OFP_VERSION_1_0, target, BigInteger.valueOf(1));
+                OFConstants.OFP_VERSION_1_0, target);
         Assert.assertNotNull(target.getMatchV10());
     }
 
@@ -70,7 +69,7 @@ public class MatchReactorTest {
     public void testMatchConvertorV13_mpRequestFlow() {
         MultipartRequestFlowBuilder target = new MultipartRequestFlowBuilder();
         MatchReactor.getInstance().convert(matchBuilder.build(),
-                OFConstants.OFP_VERSION_1_3, target, BigInteger.valueOf(1));
+                OFConstants.OFP_VERSION_1_3, target);
         Assert.assertNotNull(target.getMatch());
     }
 
@@ -81,7 +80,7 @@ public class MatchReactorTest {
     public void testMatchConvertorV10_mpRequestFlow() {
         MultipartRequestFlowBuilder target = new MultipartRequestFlowBuilder();
         MatchReactor.getInstance().convert(matchBuilder.build(),
-                OFConstants.OFP_VERSION_1_0, target, BigInteger.valueOf(1));
+                OFConstants.OFP_VERSION_1_0, target);
         Assert.assertNotNull(target.getMatchV10());
     }
 
@@ -89,7 +88,7 @@ public class MatchReactorTest {
     public void testMatchConvertorV10_null() {
         MultipartRequestAggregateBuilder target = new MultipartRequestAggregateBuilder();
         MatchReactor.getInstance().convert(null,
-                OFConstants.OFP_VERSION_1_0, target, BigInteger.valueOf(1));
+                OFConstants.OFP_VERSION_1_0, target);
         Assert.assertNotNull(target.getMatchV10());
     }
 
@@ -100,7 +99,7 @@ public class MatchReactorTest {
     public void testMatchConvertorV13_mpRequestAggregate() {
         MultipartRequestAggregateBuilder target = new MultipartRequestAggregateBuilder();
         MatchReactor.getInstance().convert(matchBuilder.build(),
-                OFConstants.OFP_VERSION_1_3, target, BigInteger.valueOf(1));
+                OFConstants.OFP_VERSION_1_3, target);
         Assert.assertNotNull(target.getMatch());
     }
 
@@ -108,7 +107,7 @@ public class MatchReactorTest {
     public void testMatchConvertorV13_null() {
         MultipartRequestAggregateBuilder target = new MultipartRequestAggregateBuilder();
         MatchReactor.getInstance().convert(null,
-                OFConstants.OFP_VERSION_1_3, target, BigInteger.valueOf(1));
+                OFConstants.OFP_VERSION_1_3, target);
         Assert.assertNotNull(target.getMatch());
         Assert.assertEquals(0, target.getMatch().getMatchEntry().size());
     }
@@ -120,7 +119,7 @@ public class MatchReactorTest {
     public void testMatchConvertorV10_mpRequestAggregate() {
         MultipartRequestAggregateBuilder target = new MultipartRequestAggregateBuilder();
         MatchReactor.getInstance().convert(matchBuilder.build(),
-                OFConstants.OFP_VERSION_1_0, target, BigInteger.valueOf(1));
+                OFConstants.OFP_VERSION_1_0, target);
         Assert.assertNotNull(target.getMatchV10());
     }