1 package org.openecomp.sdc.be.resources.data;
5 import java.util.HashMap;
8 public class GraphNodeLockTest {
10 private GraphNodeLock createTestSubject() {
11 return new GraphNodeLock();
15 public void testCtor() throws Exception {
16 new GraphNodeLock(new HashMap<>());
17 new GraphNodeLock("mock");
21 public void testGetUniqueId() throws Exception {
22 GraphNodeLock testSubject;
26 testSubject = createTestSubject();
27 result = testSubject.getUniqueId();
31 public void testToGraphMap() throws Exception {
32 GraphNodeLock testSubject;
33 Map<String, Object> result;
36 testSubject = createTestSubject();
37 result = testSubject.toGraphMap();
41 public void testSetUniqueId() throws Exception {
42 GraphNodeLock testSubject;
46 testSubject = createTestSubject();
47 testSubject.setUniqueId(uniqueId);
51 public void testGetTime() throws Exception {
52 GraphNodeLock testSubject;
56 testSubject = createTestSubject();
57 result = testSubject.getTime();
61 public void testSetTime() throws Exception {
62 GraphNodeLock testSubject;
66 testSubject = createTestSubject();
67 testSubject.setTime(time);