2 * Copyright © 2021 Orange, 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.transportpce.dmaap.client.impl;
10 import static org.mockito.Mockito.times;
11 import static org.mockito.Mockito.verify;
13 import org.junit.Before;
14 import org.junit.Test;
15 import org.mockito.Mock;
16 import org.mockito.Mockito;
17 import org.mockito.MockitoAnnotations;
18 import org.opendaylight.mdsal.binding.api.NotificationService;
19 import org.opendaylight.transportpce.dmaap.client.listener.NbiNotificationsListenerImpl;
22 public class DmaapClientProviderTest {
25 private NotificationService notificationService;
29 MockitoAnnotations.openMocks(this);
34 public void testInitRegisterNbiNotificationsToRpcRegistry() {
35 DmaapClientProvider provider = new DmaapClientProvider(notificationService, "http://localhost", "username", "password");
37 (verify(notificationService, times(1)))
38 .registerNotificationListener(Mockito.any(NbiNotificationsListenerImpl.class));