aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/devicemodel/model/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'sdnr/wt/devicemodel/model/src/test')
-rw-r--r--sdnr/wt/devicemodel/model/src/test/java/org/onap/ccsdk/features/sdnr/wt/devicemodel/test/TestNetworkElement.java53
1 files changed, 53 insertions, 0 deletions
diff --git a/sdnr/wt/devicemodel/model/src/test/java/org/onap/ccsdk/features/sdnr/wt/devicemodel/test/TestNetworkElement.java b/sdnr/wt/devicemodel/model/src/test/java/org/onap/ccsdk/features/sdnr/wt/devicemodel/test/TestNetworkElement.java
new file mode 100644
index 000000000..e3b7fc9ad
--- /dev/null
+++ b/sdnr/wt/devicemodel/model/src/test/java/org/onap/ccsdk/features/sdnr/wt/devicemodel/test/TestNetworkElement.java
@@ -0,0 +1,53 @@
+/*******************************************************************************
+ * ============LICENSE_START=======================================================
+ * ONAP : ccsdk feature sdnr wt
+ * ================================================================================
+ * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property.
+ * All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ ******************************************************************************/
+package org.onap.ccsdk.features.sdnr.wt.devicemodel.test;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.Test;
+import org.opendaylight.yang.gen.v1.urn.onf.params.xml.ns.yang.core.model.rev170320.NetworkElement;
+import org.opendaylight.yang.gen.v1.urn.onf.params.xml.ns.yang.core.model.rev170320.NetworkElementBuilder;
+import org.opendaylight.yang.gen.v1.urn.onf.params.xml.ns.yang.core.model.rev170320.name.g.Name;
+import org.opendaylight.yang.gen.v1.urn.onf.params.xml.ns.yang.core.model.rev170320.name.g.NameBuilder;
+
+public class TestNetworkElement {
+
+ @Test
+ public void test() {
+
+ NetworkElementBuilder networkElementBuilder = new NetworkElementBuilder();
+
+ NameBuilder nameBuilder = new NameBuilder();
+ nameBuilder.setValueName("name");
+ nameBuilder.setValue("Device1");
+ List<Name> nameList = new ArrayList<>();
+ nameList.add(nameBuilder.build());
+ networkElementBuilder.setName(nameList);
+
+
+ NetworkElement ne = networkElementBuilder.build();
+
+ System.out.println(ne.toString());
+
+ //fail("Not yet implemented");
+ }
+
+}