Code clean up
[bgpcep.git] / testtool-util / src / test / java / org / opendaylight / protocol / util / CheckUtilTest.java
index 1f79e91f79333cf2f1e4d70444ed46b60d2e5dcc..0e822e5dc250881de62a6419bf27252e21c9c44d 100644 (file)
@@ -9,7 +9,7 @@ package org.opendaylight.protocol.util;
 
 import static junit.framework.TestCase.assertNull;
 import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
 import static org.mockito.Matchers.any;
 import static org.mockito.Mockito.doAnswer;
 import static org.mockito.Mockito.doReturn;
@@ -49,7 +49,7 @@ public class CheckUtilTest extends AbstractConcurrentDataBrokerTest {
     private final KeyedInstanceIdentifier<Topology, TopologyKey> topologyIIdKeyed =
             InstanceIdentifier.create(NetworkTopology.class).child(Topology.class,
                     new TopologyKey(TOPOLOGY_ID));
-    private static int TIMEOUT = 1;
+    private static final int TIMEOUT = 1;
     @Mock
     private ListenerCheck listenerCheck;
     @Mock
@@ -162,7 +162,7 @@ public class CheckUtilTest extends AbstractConcurrentDataBrokerTest {
 
     @Test(expected = AssertionError.class)
     public void testCheckEquals() throws Exception {
-        checkEquals(() -> assertTrue(false), TIMEOUT);
+        checkEquals(() -> fail(), TIMEOUT);
     }
 
     @Test(expected = AssertionError.class)