Fix several tests to use correct junit methods
[controller.git] / opendaylight / forwardingrulesmanager / integrationtest / src / test / java / org / opendaylight / controller / forwardingrulesmanager / internal / ForwardingRulesManagerIT.java
index ef2e0fa01d3b14c98fa1fe51bdf4f9168e5f4f60..b35380b46749a98009f365ef027c7610764f4fd0 100644 (file)
@@ -1,5 +1,6 @@
 package org.opendaylight.controller.forwardingrulesmanager.internal;
 
+import static junit.framework.Assert.fail;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
 import static org.ops4j.pax.exam.CoreOptions.junitBundles;
@@ -209,7 +210,7 @@ public class ForwardingRulesManagerIT {
             Assert.assertTrue(stat.getCode() == StatusCode.SUCCESS);
         } catch (ConstructionException e) {
             // Got a failure while allocating the node
-            Assert.assertTrue(false);
+            fail("Failed while allocating the node " + e.getMessage());
         }
     }
 }