new unit tests for sdc-dao
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / resources / data / ServiceCategoryDataTest.java
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/ServiceCategoryDataTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/ServiceCategoryDataTest.java
new file mode 100644 (file)
index 0000000..1e0cc7c
--- /dev/null
@@ -0,0 +1,28 @@
+package org.openecomp.sdc.be.resources.data;
+
+import org.apache.commons.collections.map.HashedMap;
+import org.junit.Test;
+
+import mockit.Deencapsulation;
+
+public class ServiceCategoryDataTest {
+
+       private ServiceCategoryData createTestSubject() {
+               return new ServiceCategoryData();
+       }
+
+       @Test
+       public void testCtor() throws Exception {
+               new ServiceCategoryData(new HashedMap());
+               new ServiceCategoryData("mock");
+       }
+       
+       @Test
+       public void testCreateUniqueId() throws Exception {
+               ServiceCategoryData testSubject;
+
+               // default test
+               testSubject = createTestSubject();
+               Deencapsulation.invoke(testSubject, "createUniqueId");
+       }
+}
\ No newline at end of file