new unit tests for sdc-dao
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / resources / data / GraphNodeLockTest.java
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/GraphNodeLockTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/GraphNodeLockTest.java
new file mode 100644 (file)
index 0000000..406e963
--- /dev/null
@@ -0,0 +1,69 @@
+package org.openecomp.sdc.be.resources.data;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.junit.Test;
+
+public class GraphNodeLockTest {
+
+       private GraphNodeLock createTestSubject() {
+               return new GraphNodeLock();
+       }
+
+       @Test
+       public void testCtor() throws Exception {
+               new GraphNodeLock(new HashMap<>());
+               new GraphNodeLock("mock");
+       }
+       
+       @Test
+       public void testGetUniqueId() throws Exception {
+               GraphNodeLock testSubject;
+               String result;
+
+               // default test
+               testSubject = createTestSubject();
+               result = testSubject.getUniqueId();
+       }
+
+       @Test
+       public void testToGraphMap() throws Exception {
+               GraphNodeLock testSubject;
+               Map<String, Object> result;
+
+               // default test
+               testSubject = createTestSubject();
+               result = testSubject.toGraphMap();
+       }
+
+       @Test
+       public void testSetUniqueId() throws Exception {
+               GraphNodeLock testSubject;
+               String uniqueId = "";
+
+               // default test
+               testSubject = createTestSubject();
+               testSubject.setUniqueId(uniqueId);
+       }
+
+       @Test
+       public void testGetTime() throws Exception {
+               GraphNodeLock testSubject;
+               Long result;
+
+               // default test
+               testSubject = createTestSubject();
+               result = testSubject.getTime();
+       }
+
+       @Test
+       public void testSetTime() throws Exception {
+               GraphNodeLock testSubject;
+               Long time = null;
+
+               // default test
+               testSubject = createTestSubject();
+               testSubject.setTime(time);
+       }
+}
\ No newline at end of file