UT for catalog be ToscaTypeImportDataImpl 55/67755/6
authorSindhuri.A <arcot.sindhuri@huawei.com>
Wed, 19 Sep 2018 14:54:35 +0000 (20:24 +0530)
committerMichael Lando <ml636r@att.com>
Mon, 24 Sep 2018 10:27:03 +0000 (10:27 +0000)
UT for catalog be ToscaTypeImportDataImpl class

Issue-ID: SDC-1775

Change-Id: I072b5f123553dc1fa0c8d9961317720d9ebd82f4
Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/model/ToscaTypeImportDataImplTest.java [new file with mode: 0644]

diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/model/ToscaTypeImportDataImplTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/impl/model/ToscaTypeImportDataImplTest.java
new file mode 100644 (file)
index 0000000..a09734d
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+
+ * Copyright (c) 2018 Huawei Intellectual Property.
+
+ *
+
+ * 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.
+
+ */
+package org.openecomp.sdc.be.components.impl.model;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.normatives.ToscaTypeMetadata;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import static org.junit.Assert.assertEquals;
+
+public class ToscaTypeImportDataImplTest {
+
+    @Test
+    public void testToscaTypeImportData() {
+        Map<String, ToscaTypeMetadata> toscaTypeMetadata = new HashMap<>();
+        ToscaTypeImportData test = new ToscaTypeImportData("toscaTypeYaml",toscaTypeMetadata);
+        assertEquals(test.getToscaTypesYml(), "toscaTypeYaml") ;
+        assertEquals(test.getToscaTypeMetadata(),toscaTypeMetadata);
+    }
+}