Coverage Summary for Class: TestEmptyGraph (org.umlg.sqlg.test.graph)
Class |
Class, %
|
Method, %
|
Line, %
|
TestEmptyGraph |
100%
(1/1)
|
100%
(2/2)
|
100%
(4/4)
|
package org.umlg.sqlg.test.graph;
import org.apache.tinkerpop.gremlin.structure.T;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.junit.Assert;
import org.junit.Test;
import org.umlg.sqlg.test.BaseTest;
/**
* Date: 2015/02/03
* Time: 11:02 AM
*/
public class TestEmptyGraph extends BaseTest {
@Test
public void testQueryEmptyGraph() {
Vertex root = this.sqlgGraph.addVertex(T.label, "Root");
this.sqlgGraph.tx().commit();
Assert.assertEquals(0, vertexTraversal(this.sqlgGraph, root).outE("lala").count().next().intValue());
}
}