Fix checkstyle issues to enforce it
[controller.git] / opendaylight / config / config-manager / src / test / java / org / opendaylight / controller / config / manager / impl / ConfigTransactionManagerImplTest.java
index cc4d3cad3602032d59ba001c3e32131e39690a74..ede2a805a8c0a2814fd1d027bd276a645503a4ac 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2013, 2017 Cisco Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -32,7 +32,7 @@ public class ConfigTransactionManagerImplTest extends
         try {
             configRegistryJMXRegistrator.registerToJMX(mockedRegistry);
             fail();
-        } catch (final Exception e) {
+        } catch (final InstanceAlreadyExistsException e) {
             assertTrue(e instanceof InstanceAlreadyExistsException);
         }
     }
@@ -49,5 +49,4 @@ public class ConfigTransactionManagerImplTest extends
                 .createTransaction();
         transaction.commit();
     }
-
 }