org.apache.tinkerpop.gremlin.structure

## Class StructureStandardSuite

- java.lang.Object
- - Suite
  - - org.apache.tinkerpop.gremlin.AbstractGremlinSuite
    - - org.apache.tinkerpop.gremlin.structure.StructureStandardSuite

-     public class StructureStandardSuite
      extends AbstractGremlinSuite

  The `StructureStandardSuite` is a JUnit test runner that executes the Gremlin Test Suite over a `Graph` implementation. This specialized test suite and runner is for use by providers to test their `Graph` implementations. The `StructureStandardSuite` ensures consistency and validity of the implementations that they test. Successful execution of this test suite is critical to proper operations of a vendor implementation.

  To use the `StructureStandardSuite` define a class in a test module. Simple naming would expect the name of the implementation followed by "StructureStandardSuite". This class should be annotated as follows (note that the "Suite" implements `GraphProvider` as a convenience only. It could be implemented in a separate class file): `@RunWith(StructureStandardSuite.class) @StructureStandardSuite.GraphProviderClass(TinkerGraphStructureStandardTest.class) public class TinkerGraphStructureStandardTest implements GraphProvider { }` Implementing `GraphProvider` provides a way for the `StructureStandardSuite` to instantiate `Graph` instances from the implementation being tested to inject into tests in the suite. The `StructureStandardSuite` will utilized Features defined in the suite to determine which tests will be executed. Note that while the above example demonstrates configuration of this suite, this approach generally applies to all other test suites.

  Set the `GREMLIN_TESTS` environment variable to a comma separated list of test classes to execute. This setting can be helpful to restrict execution of tests to specific ones being focused on during development.
  Author:
    Stephen Mallette (http://stephen.genoprime.com)

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.apache.tinkerpop.gremlin.AbstractGremlinSuite

      `AbstractGremlinSuite.OptOutTestFilter`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `StructureStandardSuite(Class<?> klass, RunnerBuilder builder)`

  - ### Method Summary

    - ### Methods inherited from class org.apache.tinkerpop.gremlin.AbstractGremlinSuite

      `afterTestExecution, beforeTestExecution, getGraphProviderClass, runChild, validateOptInAndOutAnnotationsOnGraph, withAfterClasses`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### StructureStandardSuite

          public StructureStandardSuite(Class<?> klass,
                                        RunnerBuilder builder)
                                 throws InitializationError

      Throws:
        `InitializationError`

Copyright © 2013–2019 Apache Software Foundation. All rights reserved.