Package com.graphaware.test.util

Examples of com.graphaware.test.util.TestDataBuilder


    }

    private void createTestDatabase() {
        database = new TestGraphDatabaseFactory().newImpermanentDatabase();

        new TestDataBuilder(database)
                .node() //ID=0
                .node().setProp("name", "One").setProp("count", 1).setProp("tags", new String[]{"one", "two"})

                .node().setProp("name", "Two").setProp("size", 2L)
                .relationshipFrom(1, "R1").setProp("time", 1)
View Full Code Here


    }

    private void createTestDatabaseForInternalTest() {
        database = new TestGraphDatabaseFactory().newImpermanentDatabase();

        new TestDataBuilder(database)
                .node() //ID=0
                .node().setProp(INTERNAL_NODE_PROPERTY, "whatever").setProp(INTERNAL_PREFIX + "name", "One").setProp(INTERNAL_PREFIX + "count", 1).setProp(INTERNAL_PREFIX + "tags", new String[]{"one", "two"})

                .node().setProp(INTERNAL_NODE_PROPERTY, "whatever").setProp("name", "Two").setProp("size", 2L)
                .relationshipFrom(1, INTERNAL_PREFIX + "R1").setProp("time", 1)
View Full Code Here

    }

    private void createTestDatabase() {
        db = new TestGraphDatabaseFactory().newImpermanentDatabase();

        new TestDataBuilder(db)
                .node(label("TestLabel"))
                .node(label("One")).setProp(NAME, "One").setProp(COUNT, 1).setProp(TAGS, new String[]{"one", "two"})

                .node().setProp(NAME, "Two").setProp("size", 2L)
                .relationshipFrom(1, "R1").setProp(TIME, 1)
View Full Code Here

TOP

Related Classes of com.graphaware.test.util.TestDataBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.