2 * Copyright © 2020 Orange Labs, 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
9 package org.opendaylight.transportpce.pce.gnpy;
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;
18 public class ServiceDataStoreOperationsImplTest extends AbstractTest {
20 ServiceDataStoreOperationsImpl serviceDataStoreOperations;
21 NetworkTransactionImpl networkTransaction = Mockito.mock(NetworkTransactionImpl.class);
22 OrgOpenroadmDevice orgOpenroadmDevice = Mockito.mock(OrgOpenroadmDevice.class);
26 serviceDataStoreOperations = new ServiceDataStoreOperationsImpl(networkTransaction);
29 // TODO: fix augmentation issue
31 public void createXMLFromDeviceTest() throws GnpyException {
32 serviceDataStoreOperations.createXMLFromDevice(this.getDataStoreContextUtil(),
33 orgOpenroadmDevice, "some-output");