Class StructureStandardSuite
- java.lang.Object
-
- org.junit.runner.Runner
-
- org.junit.runners.ParentRunner<org.junit.runner.Runner>
-
- org.junit.runners.Suite
-
- org.apache.tinkerpop.gremlin.AbstractGremlinSuite
-
- org.apache.tinkerpop.gremlin.structure.StructureStandardSuite
-
- All Implemented Interfaces:
org.junit.runner.Describable,org.junit.runner.manipulation.Filterable,org.junit.runner.manipulation.Orderable,org.junit.runner.manipulation.Sortable
public class StructureStandardSuite extends AbstractGremlinSuite
TheStructureStandardSuiteis a JUnit test runner that executes the Gremlin Test Suite over aGraphimplementation. This specialized test suite and runner is for use by providers to test theirGraphimplementations. TheStructureStandardSuiteensures 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 theStructureStandardSuitedefine 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" implementsGraphProvideras a convenience only. It could be implemented in a separate class file):@RunWith(StructureStandardSuite.class) @StructureStandardSuite.GraphProviderClass(TinkerGraphStructureStandardTest.class) public class TinkerGraphStructureStandardTest implements GraphProvider { }ImplementingGraphProviderprovides a way for theStructureStandardSuiteto instantiateGraphinstances from the implementation being tested to inject into tests in the suite. TheStructureStandardSuitewill 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 theGREMLIN_TESTSenvironment variable to a comma separated list of qualified names of the 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 Description StructureStandardSuite(Class<?> klass, org.junit.runners.model.RunnerBuilder builder)
-
Method Summary
-
Methods inherited from class org.apache.tinkerpop.gremlin.AbstractGremlinSuite
afterTestExecution, beforeTestExecution, getGraphProviderClass, runChild, withAfterClasses
-
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, collectInitializationErrors, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, isIgnored, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withBeforeClasses, withInterruptIsolation
-
-
-
-
Constructor Detail
-
StructureStandardSuite
public StructureStandardSuite(Class<?> klass, org.junit.runners.model.RunnerBuilder builder) throws org.junit.runners.model.InitializationError
- Throws:
org.junit.runners.model.InitializationError
-
-