package org.openecomp.sdc.be.dao.jsongraph;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
+import com.thinkaurelius.titan.core.TitanGraph;
+import com.thinkaurelius.titan.core.TitanVertex;
+import fj.data.Either;
+import mockit.Deencapsulation;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.tinkerpop.gremlin.structure.Direction;
import org.apache.tinkerpop.gremlin.structure.Edge;
import org.openecomp.sdc.be.dao.titan.TitanOperationStatus;
import org.openecomp.sdc.be.datatypes.enums.GraphPropertyEnum;
-import com.thinkaurelius.titan.core.TitanGraph;
-import com.thinkaurelius.titan.core.TitanVertex;
-
-import fj.data.Either;
-import mockit.Deencapsulation;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
public class TitanDaoMockTest {
testSubject.parseVertexProperties(graphVertex, JsonParseFlagEnum.NoParse);
}
+
@Test
public void testCreateEdge() throws Exception {
Mockito.when(titanClient.getGraph()).thenReturn(value);
// default test
- result = testSubject.getCatalogVerticies();
+ result = testSubject.getCatalogOrArchiveVerticies(true);
}
@Test
result = testSubject.getChildVertex(parentVertex, edgeLabel, parseFlag);
}
+
@Test
public void testGetParentVertex_1() throws Exception {
result = testSubject.getChildrenVertecies(parentVertex, edgeLabel, parseFlag);
}
+
@Test
public void testDeleteBelongingEdgeByCriteria() throws Exception {
result = testSubject.createEdge(from, to, label, edgeToCopy);
}
+
@Test
public void testReplaceEdgeLabel() throws Exception {