Bug 8153: Enforce check-style rules for netconf - netconf-util
[netconf.git] / netconf / netconf-util / src / test / java / org / opendaylight / netconf / util / osgi / NetconfConfigUtilTest.java
index e777bb05f6f97cee52ac72f64c92149340cbecf5..64bf74fec5387cb2f2a7a1cb1e6413765a09c21f 100644 (file)
@@ -8,6 +8,7 @@
 
 package org.opendaylight.netconf.util.osgi;
 
+import static org.junit.Assert.assertTrue;
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.doThrow;
 import static org.mockito.Mockito.mock;
@@ -66,7 +67,7 @@ public class NetconfConfigUtilTest {
             NetconfConfigUtil.getNetconfConfigurationService(context);
             Assert.fail(IllegalStateException.class + "exception expected");
         } catch (IllegalStateException e) {
-
+            assertTrue(e.getMessage().startsWith("Netconf configuration service not found"));
         }
     }