X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-manager%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fmanager%2Ftestingservices%2Fthreadpool%2Ftest%2FShutdownTest.java;h=9198c4b8a984417665852da96c8e9410d4069430;hb=2b78ca93f44c372fd72927db6cbd65f5d8387b49;hp=e047a1eccae5452d4fba1f481012c619a5b6192d;hpb=567792806ed799ac649cc125bffb4debde40d254;p=controller.git diff --git a/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/threadpool/test/ShutdownTest.java b/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/threadpool/test/ShutdownTest.java index e047a1ecca..9198c4b8a9 100644 --- a/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/threadpool/test/ShutdownTest.java +++ b/opendaylight/config/config-manager/src/test/java/org/opendaylight/controller/config/manager/testingservices/threadpool/test/ShutdownTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. + * Copyright (c) 2014, 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, @@ -29,7 +29,8 @@ import org.opendaylight.controller.config.util.ConfigTransactionJMXClient; import org.osgi.framework.BundleContext; public class ShutdownTest extends AbstractConfigTest { - private final TestingFixedThreadPoolModuleFactory testingFixedThreadPoolModuleFactory = new TestingFixedThreadPoolModuleFactory(); + private final TestingFixedThreadPoolModuleFactory testingFixedThreadPoolModuleFactory = + new TestingFixedThreadPoolModuleFactory(); @Mock ModuleFactoriesResolver mockedResolver; @@ -44,7 +45,6 @@ public class ShutdownTest extends AbstractConfigTest { super.initConfigTransactionManagerImpl(mockedResolver); } - @Test public void testCreateAndDestroyBeanInSameTransaction() throws Exception { { @@ -52,12 +52,12 @@ public class ShutdownTest extends AbstractConfigTest { SimpleConfigurationTest.createFixedThreadPool(transaction); transaction.commit(); } - assertEquals(1, TestingFixedThreadPool.allExecutors.size()); + assertEquals(1, TestingFixedThreadPool.ALL_EXECUTORS.size()); doReturn(Collections.emptyMap()).when(mockedResolver).getAllFactories(); { ConfigTransactionJMXClient transaction = configRegistryClient.createTransaction(); transaction.commit(); } - assertEquals(1, TestingFixedThreadPool.allExecutors.size()); + assertEquals(1, TestingFixedThreadPool.ALL_EXECUTORS.size()); } }