config-manager: final parameters
[controller.git] / opendaylight / config / config-manager / src / test / java / org / opendaylight / controller / config / manager / testingservices / parallelapsp / test / DependentWiringTest.java
index 165a6c7ed62e02bdbb05e5644962dc15b42712d9..9c550966e62228e0bcc5414758fc7db9fa753d99 100644 (file)
@@ -12,11 +12,8 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertThat;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
-
 import java.util.Map;
-
 import javax.management.ObjectName;
-
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -35,7 +32,6 @@ import org.opendaylight.controller.config.util.ConfigTransactionJMXClient;
 
 public class DependentWiringTest extends AbstractParallelAPSPTest {
     private final String fixed1 = "fixed1";
-    private final String apsp1 = "apsp-parallel";
 
     @Before
     public void setUp() {
@@ -73,7 +69,7 @@ public class DependentWiringTest extends AbstractParallelAPSPTest {
             try {
                 transaction.validateConfig();
                 fail();
-            } catch (ValidationException e) {
+            } catch (final ValidationException e) {
                 for (Map.Entry<String, Map<String, ExceptionMessageWithStackTrace>> exception : e
                         .getFailedValidations().entrySet()) {
                     for (Map.Entry<String, ExceptionMessageWithStackTrace> entry : exception
@@ -89,7 +85,7 @@ public class DependentWiringTest extends AbstractParallelAPSPTest {
             try {
                 transaction.commit();
                 fail();
-            } catch (ValidationException e) {
+            } catch (final ValidationException e) {
                 for (Map.Entry<String, Map<String, ExceptionMessageWithStackTrace>> exception : e
                         .getFailedValidations().entrySet()) {
                     for (Map.Entry<String, ExceptionMessageWithStackTrace> entry : exception
@@ -110,7 +106,7 @@ public class DependentWiringTest extends AbstractParallelAPSPTest {
 
         // test reported apsp number of threads
         TestingParallelAPSPConfigMXBean parallelAPSPRuntimeProxy = configRegistryClient
-                .newMBeanProxy(apspON, TestingParallelAPSPConfigMXBean.class);
+                .newMXBeanProxy(apspON, TestingParallelAPSPConfigMXBean.class);
         assertEquals(
                 (Integer) TestingParallelAPSPImpl.MINIMAL_NUMBER_OF_THREADS,
                 parallelAPSPRuntimeProxy.getMaxNumberOfThreads());
@@ -139,7 +135,7 @@ public class DependentWiringTest extends AbstractParallelAPSPTest {
     public void testUsingServiceReferences() throws Exception {
         ConfigTransactionJMXClient transaction = configRegistryClient.createTransaction();
         ObjectName threadPoolON = createFixed1(transaction, 10);
-                transaction.lookupConfigBean(getThreadPoolImplementationName(), fixed1);
+        transaction.lookupConfigBean(getThreadPoolImplementationName(), fixed1);
         String refName = "ref";
         ObjectName serviceReferenceON = transaction.saveServiceReference(TestingThreadPoolServiceInterface.QNAME, refName,
                 threadPoolON);