Merge "Startup arch - remove artifactId prefix from dir names."
[controller.git] / opendaylight / netconf / netconf-monitoring / src / test / java / org / opendaylight / controller / netconf / monitoring / osgi / NetconfMonitoringOperationServiceTest.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.netconf.monitoring.osgi;
10
11 import static org.junit.Assert.assertEquals;
12 import static org.mockito.Mockito.mock;
13
14 import org.junit.Test;
15 import org.opendaylight.controller.netconf.api.monitoring.NetconfMonitoringService;
16
17 public class NetconfMonitoringOperationServiceTest {
18     @Test
19     public void testGetters() throws Exception {
20         NetconfMonitoringService monitor = mock(NetconfMonitoringService.class);
21         NetconfMonitoringOperationService service = new NetconfMonitoringOperationService(monitor);
22         NetconfMonitoringActivator.NetconfMonitoringOperationServiceFactory serviceFactory = new NetconfMonitoringActivator.NetconfMonitoringOperationServiceFactory(service);
23
24         assertEquals(2, service.getNetconfOperations().size());
25
26     }
27 }