aca44d07ee6001d79a13a835b824bd8ef17f3a3a
[ccsdk/features.git] /
1 /*
2  * Copyright (c) 2019 Red Hat, 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 package org.onap.ccsdk.features.sdnr.wt.devicemanager.test;
9
10 import org.junit.Test;
11 import org.mockito.Mockito;
12 import org.onap.ccsdk.features.sdnr.wt.devicemanager.impl.database.types.equipment.ExtendedEquipment;
13 import org.opendaylight.yang.gen.v1.urn.onf.params.xml.ns.yang.core.model.rev170320.EquipmentBuilder;
14 import org.opendaylight.yang.gen.v1.urn.onf.params.xml.ns.yang.core.model.rev170320.UniversalId;
15
16 public class TestEquipment extends Mockito {
17
18     @Test
19     public void test() {
20
21
22         EquipmentBuilder equipmentBuilder = new EquipmentBuilder();
23         equipmentBuilder.setUuid( new UniversalId("EquipmentId"));
24         ExtendedEquipment extendedEquipment = new ExtendedEquipment("Parent",equipmentBuilder.build(),1);
25
26         String extendedEquipmentString = extendedEquipment.toString();
27         System.out.println(extendedEquipmentString);
28     }
29
30 }