Refactor ShutdownProvider.shutdown()
[openflowplugin.git] / openflowjava / openflow-protocol-impl / src / test / java / org / opendaylight / openflowjava / protocol / impl / core / connection / UdpHandlerTest.java
index cb2e53fb8cfdc1776acab482ad8d079ca97d7cd2..dbcd31079385cd6f7a6ee360d01e6676d1a04a8c 100644 (file)
@@ -9,6 +9,7 @@ package org.opendaylight.openflowjava.protocol.impl.core.connection;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
 
 import java.net.InetAddress;
@@ -113,6 +114,6 @@ public class UdpHandlerTest {
 
     private void shutdownServer() throws InterruptedException, ExecutionException, TimeoutException {
         final var shutdownRet = udpHandler.shutdown() ;
-        assertTrue("Wrong - shutdown failed", shutdownRet.get(10, TimeUnit.SECONDS));
+        assertNull("Wrong - shutdown failed", shutdownRet.get(10, TimeUnit.SECONDS));
     }
 }