2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.config.manager.testingservices.scheduledthreadpool.test;
10 import static org.junit.Assert.assertEquals;
12 import org.junit.After;
13 import org.junit.Before;
14 import org.opendaylight.controller.config.manager.impl.AbstractConfigTest;
15 import org.opendaylight.controller.config.manager.impl.factoriesresolver.HardcodedModuleFactoriesResolver;
16 import org.opendaylight.controller.config.manager.testingservices.parallelapsp.TestingParallelAPSPModuleFactory;
17 import org.opendaylight.controller.config.manager.testingservices.scheduledthreadpool.TestingScheduledThreadPoolImpl;
18 import org.opendaylight.controller.config.manager.testingservices.scheduledthreadpool
19 .TestingScheduledThreadPoolModuleFactory;
20 import org.opendaylight.controller.config.manager.testingservices.threadpool.TestingFixedThreadPoolModuleFactory;
22 public abstract class AbstractScheduledTest extends AbstractConfigTest {
23 protected static final String scheduled1 = "scheduled1";
26 public final void setUp() {
28 TestingScheduledThreadPoolImpl.getNumberOfCloseMethodCalls());
29 super.initConfigTransactionManagerImpl(new HardcodedModuleFactoriesResolver(
30 new TestingScheduledThreadPoolModuleFactory(),
31 new TestingFixedThreadPoolModuleFactory(),
32 new TestingParallelAPSPModuleFactory()));
36 public final void cleanUp() throws Exception {
37 destroyAllConfigBeans();
38 TestingScheduledThreadPoolImpl.cleanUp();
40 TestingScheduledThreadPoolImpl.getNumberOfCloseMethodCalls());