X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fmessagebus-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmessagebus%2Fapp%2Fimpl%2FEventSourceRegistrationImplTest.java;fp=opendaylight%2Fmd-sal%2Fmessagebus-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmessagebus%2Fapp%2Fimpl%2FEventSourceRegistrationImplTest.java;h=0000000000000000000000000000000000000000;hb=e258e0fef2bc38e35f09354f0fdd5136c69ad1a7;hp=82ef60db69aba64fd75a0acac3eecedd227d9138;hpb=5f587c3e2bfabc09fec49463d04a6fbeba414e9c;p=controller.git diff --git a/opendaylight/md-sal/messagebus-impl/src/test/java/org/opendaylight/controller/messagebus/app/impl/EventSourceRegistrationImplTest.java b/opendaylight/md-sal/messagebus-impl/src/test/java/org/opendaylight/controller/messagebus/app/impl/EventSourceRegistrationImplTest.java deleted file mode 100644 index 82ef60db69..0000000000 --- a/opendaylight/md-sal/messagebus-impl/src/test/java/org/opendaylight/controller/messagebus/app/impl/EventSourceRegistrationImplTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2015 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.messagebus.app.impl; - -import static org.mockito.ArgumentMatchers.any; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.times; -import static org.mockito.Mockito.verify; - -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; -import org.opendaylight.controller.messagebus.spi.EventSource; - -@Deprecated(forRemoval = true) -public class EventSourceRegistrationImplTest { - - EventSourceRegistrationImplLocal eventSourceRegistrationImplLocal; - EventSourceTopology eventSourceTopologyMock; - - @BeforeClass - public static void initTestClass() { - } - - @Before - public void setUp() { - EventSource eventSourceMock = mock(EventSource.class); - eventSourceTopologyMock = mock(EventSourceTopology.class); - eventSourceRegistrationImplLocal = new EventSourceRegistrationImplLocal(eventSourceMock, - eventSourceTopologyMock); - } - - @Test - public void removeRegistrationTest() { - eventSourceRegistrationImplLocal.removeRegistration(); - verify(eventSourceTopologyMock, times(1)).unRegister(any(EventSource.class)); - } - - - private class EventSourceRegistrationImplLocal extends EventSourceRegistrationImpl { - EventSourceRegistrationImplLocal(final EventSource instance, final EventSourceTopology eventSourceTopology) { - super(instance, eventSourceTopology); - } - } - -}