BUG 2245 - Fix Unnecessary Local Before Return
[openflowjava.git] / openflow-protocol-impl / src / test / java / org / opendaylight / openflowjava / protocol / impl / connection / SwitchConnectionProviderImpl02Test.java
index e0fecc2782fef84ae15f4f9c7ae0fdddcff6e1d3..c388c6826776ee31197fbe6b9c59d316c841ee55 100644 (file)
@@ -112,6 +112,14 @@ public class SwitchConnectionProviderImpl02Test {
         Assert.assertNotNull("Wrong -- getServerFacade return null",serverFacade);
     }
 
+    /**
+     * Test shutdown on unconfigured provider
+     */
+    @Test(expected = IllegalStateException.class)
+    public void testShutdownUnconfigured(){
+        startUp(TransportProtocol.TCP);
+        provider.shutdown();
+    }
     /**
      * Test unregister by wrong key
      */