Package com.thinkaurelius.titan.blueprints

Source Code of com.thinkaurelius.titan.blueprints.InMemoryBlueprintsTest

package com.thinkaurelius.titan.blueprints;

import com.google.common.collect.ImmutableSet;
import com.thinkaurelius.titan.StorageSetup;
import com.thinkaurelius.titan.core.TitanGraph;
import com.thinkaurelius.titan.diskstorage.StorageException;
import com.tinkerpop.blueprints.BaseTest;
import com.tinkerpop.blueprints.Graph;
import com.tinkerpop.blueprints.GraphTestSuite;

/**
* @author Matthias Broecheler (me@matthiasb.com)
*/

public abstract class InMemoryBlueprintsTest extends TitanBlueprintsTest {

    public void testGraphTestSuite() throws Exception {
        this.stopWatch();
        doTestSuite(new GraphTestSuite(this), ImmutableSet.of("testStringRepresentation","testDataTypeValidationOnProperties","testGraphDataPersists"));
        BaseTest.printTestPerformance("GraphTestSuite", this.stopWatch());
    }



    ///=========================== DEFAULT ===========

    @Override
    public void cleanUp() throws StorageException {

    }

    @Override
    public boolean supportsMultipleGraphs() {
        return false;
    }

    @Override
    public void startUp() {

    }

    @Override
    public void shutDown() {

    }

    @Override
    public Graph generateGraph() {
        TitanGraph graph = StorageSetup.getInMemoryGraph();
        return graph;
    }

    @Override
    public Graph generateGraph(String graphDirectoryName) {
        throw new UnsupportedOperationException();
    }


}
TOP

Related Classes of com.thinkaurelius.titan.blueprints.InMemoryBlueprintsTest

TOP
Copyright © 2018 www.massapi.com. 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.