X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fforwardingrulesmanager%2Fapi%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fforwardingrulesmanager%2FfrmTest.java;h=48e1f07716ec267ddb52340e3ea21ef64ac8cebd;hb=e640f23d9c37afac9ca51f48e155302bc65327ed;hp=a3e1ded14178ff8d00a3efe21d02ea798fa19af2;hpb=d07c39a5f9e77c8e6f4293ee23eae53b7d6b525c;p=controller.git diff --git a/opendaylight/forwardingrulesmanager/api/src/test/java/org/opendaylight/controller/forwardingrulesmanager/frmTest.java b/opendaylight/forwardingrulesmanager/api/src/test/java/org/opendaylight/controller/forwardingrulesmanager/frmTest.java index a3e1ded141..48e1f07716 100644 --- a/opendaylight/forwardingrulesmanager/api/src/test/java/org/opendaylight/controller/forwardingrulesmanager/frmTest.java +++ b/opendaylight/forwardingrulesmanager/api/src/test/java/org/opendaylight/controller/forwardingrulesmanager/frmTest.java @@ -469,13 +469,14 @@ public class frmTest { @Test public void testStatusToggle() throws UnknownHostException { + // default is install in Hw FlowConfig fc = new FlowConfig(); fc.toggleInstallation(); - Assert.assertTrue(fc.installInHw()); - fc.toggleInstallation(); Assert.assertFalse(fc.installInHw()); fc.toggleInstallation(); Assert.assertTrue(fc.installInHw()); + fc.toggleInstallation(); + Assert.assertFalse(fc.installInHw()); } @@ -545,11 +546,6 @@ public class frmTest { fc.setCookie("100"); Assert.assertTrue(fc.validate(null).isSuccess()); - fc.setIngressPort("-1"); - status = fc.validate(null); - Assert.assertFalse(status.isSuccess()); - Assert.assertTrue(status.getDescription().contains("is not valid for the Switch")); - fc.setIngressPort("100"); Assert.assertTrue(fc.validate(null).isSuccess());