X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fthreadpool-config-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fthreadpool%2Feventbus%2FTestingEventBusModule.java;h=4431f78edbc2048cd767e221dc05d647aac0a9d0;hp=ee6bbc51bc49d1e1e761032f6adf3a14b3bbb4b4;hb=408eeef51f435abd2027f9d25ac5592066b202dd;hpb=0b3fe7299bbeccc10f2c1b859f95de07c168ac9f diff --git a/opendaylight/config/threadpool-config-impl/src/test/java/org/opendaylight/controller/config/threadpool/eventbus/TestingEventBusModule.java b/opendaylight/config/threadpool-config-impl/src/test/java/org/opendaylight/controller/config/threadpool/eventbus/TestingEventBusModule.java index ee6bbc51bc..4431f78edb 100644 --- a/opendaylight/config/threadpool-config-impl/src/test/java/org/opendaylight/controller/config/threadpool/eventbus/TestingEventBusModule.java +++ b/opendaylight/config/threadpool-config-impl/src/test/java/org/opendaylight/controller/config/threadpool/eventbus/TestingEventBusModule.java @@ -1,28 +1,35 @@ -package org.opendaylight.controller.config.threadpool.eventbus; - -import static org.mockito.Mockito.doNothing; -import static org.mockito.Mockito.mock; - -import org.opendaylight.controller.config.api.DynamicMBeanWithInstance; -import org.opendaylight.controller.config.api.ModuleIdentifier; -import org.opendaylight.controller.config.manager.impl.AbstractMockedModule; -import org.opendaylight.controller.config.spi.Module; -import org.opendaylight.controller.config.threadpool.util.CloseableEventBus; -import org.opendaylight.controller.config.yang.threadpool.EventBusServiceInterface; -import org.opendaylight.controller.config.yang.threadpool.impl.EventBusModuleMXBean; - -public class TestingEventBusModule extends AbstractMockedModule implements Module, EventBusServiceInterface, - EventBusModuleMXBean { - - public TestingEventBusModule(DynamicMBeanWithInstance old, ModuleIdentifier id) { - super(old, id); - } - - @Override - protected AutoCloseable prepareMockedInstance() throws Exception { - CloseableEventBus bus = mock(CloseableEventBus.class); - doNothing().when(bus).close(); - return bus; - } - -} +/* + * Copyright (c) 2013 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, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ +package org.opendaylight.controller.config.threadpool.eventbus; + +import static org.mockito.Mockito.doNothing; +import static org.mockito.Mockito.mock; + +import org.opendaylight.controller.config.api.DynamicMBeanWithInstance; +import org.opendaylight.controller.config.api.ModuleIdentifier; +import org.opendaylight.controller.config.manager.impl.AbstractMockedModule; +import org.opendaylight.controller.config.spi.Module; +import org.opendaylight.controller.config.threadpool.util.CloseableEventBus; +import org.opendaylight.controller.config.yang.threadpool.EventBusServiceInterface; +import org.opendaylight.controller.config.yang.threadpool.impl.EventBusModuleMXBean; + +public class TestingEventBusModule extends AbstractMockedModule implements Module, EventBusServiceInterface, + EventBusModuleMXBean { + + public TestingEventBusModule(DynamicMBeanWithInstance old, ModuleIdentifier id) { + super(old, id); + } + + @Override + protected AutoCloseable prepareMockedInstance() throws Exception { + CloseableEventBus bus = mock(CloseableEventBus.class); + doNothing().when(bus).close(); + return bus; + } + +}