All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.umlg.sqlg.test.graph.TestEmptyGraph Maven / Gradle / Ivy

There is a newer version: 3.1.0
Show newest version
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());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy