Move TopologyDataUtils from tapi to test-common
[transportpce.git] / tapi / src / test / java / org / opendaylight / transportpce / tapi / utils / TapiTopologyDataUtils.java
1 /*
2  * Copyright © 2020 Orange, 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.tapi.utils;
10
11 import org.opendaylight.yang.gen.v1.urn.onf.otcc.yang.tapi.topology.rev181210.GetTopologyDetailsInput;
12 import org.opendaylight.yang.gen.v1.urn.onf.otcc.yang.tapi.topology.rev181210.GetTopologyDetailsInputBuilder;
13
14 public final class TapiTopologyDataUtils {
15     public static final String OPENROADM_TOPOLOGY_FILE = "src/test/resources/openroadm-topology.xml";
16     public static final String OTN_TOPOLOGY_FILE = "src/test/resources/otn-topology.xml";
17     public static final String PORTMAPPING_FILE = "src/test/resources/portmapping.xml";
18
19     public static GetTopologyDetailsInput buildGetTopologyDetailsInput(String topoName) {
20         GetTopologyDetailsInputBuilder builtInput = new GetTopologyDetailsInputBuilder();
21         builtInput.setTopologyIdOrName(topoName);
22         return builtInput.build();
23     }
24
25     private TapiTopologyDataUtils() {
26     }
27
28 }