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.TestingScheduledThreadPoolModuleFactory;
19 import org.opendaylight.controller.config.manager.testingservices.threadpool.TestingFixedThreadPoolModuleFactory;
21 public abstract class AbstractScheduledTest extends AbstractConfigTest {
22 protected static final String scheduled1 = "scheduled1";
25 public final void setUp() {
27 TestingScheduledThreadPoolImpl.getNumberOfCloseMethodCalls());
28 super.initConfigTransactionManagerImpl(new HardcodedModuleFactoriesResolver(mockedContext,
29 new TestingScheduledThreadPoolModuleFactory(),
30 new TestingFixedThreadPoolModuleFactory(),
31 new TestingParallelAPSPModuleFactory()));
35 public final void cleanUp() throws Exception {
36 destroyAllConfigBeans();
37 TestingScheduledThreadPoolImpl.cleanUp();
39 TestingScheduledThreadPoolImpl.getNumberOfCloseMethodCalls());