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

com.tinkerpop.gremlin.structure.StructurePerformanceSuite Maven / Gradle / Ivy

The newest version!
package com.tinkerpop.gremlin.structure;

import com.tinkerpop.gremlin.AbstractGremlinSuite;
import org.junit.runners.model.InitializationError;
import org.junit.runners.model.RunnerBuilder;

/**
 * The StructurePerformanceSuite is a mapper JUnit test runner that executes the Gremlin Test Suite over a Graph
 * implementation.  This specialized test suite and runner is for use by Gremlin Structure implementers to test their
 * Graph implementations.  The StructurePerformanceSuite runs more complex testing scenarios over Graph
 * implementations than the standard StructureStandardSuite.
 * 

* To use the StructurePerformanceSuite define a class in a test module. Simple naming would expect the name of the * implementation followed by "StructurePerformanceTest". This class should be annotated as follows (note that * the "Suite" implements StructureStandardSuite.GraphProvider as a convenience only...it could be implemented in a separate * class file): * * * @author Stephen Mallette (http://stephen.genoprime.com) * @RunWith(StructurePerformanceSuite.class) * @StructurePerformanceSuite.GraphProviderClass(TinkerGraphStructurePerformanceTest.class) public class TinkerGraphStructurePerformanceTest implements GraphProvider { * } * * Implementing {@link com.tinkerpop.gremlin.GraphProvider} provides a way for the StructurePerformanceSuite to * instantiate Graph instances from the implementation being tested to inject into tests in the suite. The * StructurePerformanceSuite will utilized Features defined in the suite to determine which tests will be executed. */ public class StructurePerformanceSuite extends AbstractGremlinSuite { /** * This list of tests in the suite that will be executed. Gremlin developers should add to this list * as needed to enforce tests upon implementations. */ private static final Class[] testsToExecute = new Class[]{ GraphWritePerformanceTest.class, GraphReadPerformanceTest.class }; public StructurePerformanceSuite(final Class klass, final RunnerBuilder builder) throws InitializationError { super(klass, builder, testsToExecute); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy