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

org.umlg.sqlg.test.TestByteArray.groovy Maven / Gradle / Ivy

There is a newer version: 3.1.0
Show newest version
/*package org.umlg.sqlg.test

import org.apache.tinkerpop.gremlin.structure.T
import org.apache.tinkerpop.gremlin.structure.Vertex
import org.junit.Assert
import org.junit.Test

/**
 * Created by pieter on 2014/08/03.
 */
/*
class TestByteArray extends BaseTest {

    @Test
    public void testByteArray() {
        byte[] bytea = [1, 2, 3, 4, 5, 6, 7, 8, 9];
        Vertex v1 = this.sqlgGraph.addVertex("Person", [name: 'pieter', bytea: bytea]);
        this.sqlgGraph.tx().commit()

        Vertex v2 = this.sqlgGraph.traversal().V().has(T.label, "Person").next();
        Assert.assertEquals(v1, v2);
        Assert.assertArrayEquals(bytea, v2.property("bytea").value());
    }

}
*/




© 2015 - 2024 Weber Informatics LLC | Privacy Policy