update PceLink test object and NetworkService
[transportpce.git] / pce / src / test / java / org / opendaylight / transportpce / pce / gnpy / ServiceDataStoreOperationsImplTest.java
1 /*
2  * Copyright © 2020 Orange Labs, 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.transportpce.pce.gnpy;
10
11 import org.junit.Before;
12 import org.junit.Test;
13 import org.mockito.Mockito;
14 import org.opendaylight.transportpce.common.network.NetworkTransactionImpl;
15 import org.opendaylight.transportpce.test.AbstractTest;
16 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev170206.org.openroadm.device.container.OrgOpenroadmDevice;
17
18 public class ServiceDataStoreOperationsImplTest extends AbstractTest {
19
20     ServiceDataStoreOperationsImpl serviceDataStoreOperations;
21     NetworkTransactionImpl networkTransaction = Mockito.mock(NetworkTransactionImpl.class);
22     OrgOpenroadmDevice orgOpenroadmDevice = Mockito.mock(OrgOpenroadmDevice.class);
23
24     @Before
25     public void setUp() {
26         serviceDataStoreOperations = new ServiceDataStoreOperationsImpl(networkTransaction);
27     }
28
29     // TODO: fix augmentation issue
30     @Test
31     public void createXMLFromDeviceTest() throws GnpyException {
32         serviceDataStoreOperations.createXMLFromDevice(this.getDataStoreContextUtil(),
33                 orgOpenroadmDevice, "some-output");
34     }
35 }