Package org.apache.tinkerpop.gremlin
Class AbstractGremlinSuite
- java.lang.Object
- 
- org.junit.runner.Runner
- 
- org.junit.runners.ParentRunner<org.junit.runner.Runner>
- 
- org.junit.runners.Suite
- 
- org.apache.tinkerpop.gremlin.AbstractGremlinSuite
 
 
 
 
- 
- All Implemented Interfaces:
- org.junit.runner.Describable,- org.junit.runner.manipulation.Filterable,- org.junit.runner.manipulation.Orderable,- org.junit.runner.manipulation.Sortable
 - Direct Known Subclasses:
- ProcessComputerSuite,- ProcessEmbeddedComputerSuite,- ProcessEmbeddedStandardSuite,- ProcessStandardSuite,- StructureStandardSuite
 
 public abstract class AbstractGremlinSuite extends org.junit.runners.SuiteBase Gremlin test suite from which different classes of tests can be exposed to implementers.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classAbstractGremlinSuite.OptOutTestFilterFilter for tests in the suite which is controlled by theGraph.OptOutannotation.
 - 
Constructor SummaryConstructors Constructor Description AbstractGremlinSuite(Class<?> klass, org.junit.runners.model.RunnerBuilder builder, Class<?>[] testsToExecute, Class<?>[] testsToEnforce, boolean gremlinFlavorSuite, TraversalEngine.Type traversalEngineType)Constructs a Gremlin Test Suite implementation.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterTestExecution(Class<? extends AbstractGremlinTest> testClass)Called just after test class execution.booleanbeforeTestExecution(Class<? extends AbstractGremlinTest> testClass)Called just prior to test class execution.static org.javatuples.Pair<Class<? extends GraphProvider>,Class<? extends Graph>>getGraphProviderClass(Class<?> klass)protected voidrunChild(org.junit.runner.Runner runner, org.junit.runner.notification.RunNotifier notifier)protected org.junit.runners.model.StatementwithAfterClasses(org.junit.runners.model.Statement statement)- 
Methods inherited from class org.junit.runners.ParentRunnerchildrenInvoker, classBlock, classRules, collectInitializationErrors, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, isIgnored, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withBeforeClasses, withInterruptIsolation
 
- 
 
- 
- 
- 
Constructor Detail- 
AbstractGremlinSuitepublic AbstractGremlinSuite(Class<?> klass, org.junit.runners.model.RunnerBuilder builder, Class<?>[] testsToExecute, Class<?>[] testsToEnforce, boolean gremlinFlavorSuite, TraversalEngine.Type traversalEngineType) throws org.junit.runners.model.InitializationError Constructs a Gremlin Test Suite implementation.- Parameters:
- klass- Required for JUnit Suite construction
- builder- Required for JUnit Suite construction
- testsToExecute- The list of tests to execute
- testsToEnforce- The list of tests to "enforce" such that a check is made to ensure that in this list, there exists an implementation in the testsToExecute (use- nullfor no enforcement).
- gremlinFlavorSuite- Ignore validation of- Graph.OptInannotations which is typically reserved for structure tests
- traversalEngineType- The- TraversalEngine.Typeto enforce on this suite
- Throws:
- org.junit.runners.model.InitializationError
 
 
- 
 - 
Method Detail- 
getGraphProviderClasspublic static org.javatuples.Pair<Class<? extends GraphProvider>,Class<? extends Graph>> getGraphProviderClass(Class<?> klass) throws org.junit.runners.model.InitializationError - Throws:
- org.junit.runners.model.InitializationError
 
 - 
runChildprotected void runChild(org.junit.runner.Runner runner, org.junit.runner.notification.RunNotifier notifier)- Overrides:
- runChildin class- org.junit.runners.Suite
 
 - 
withAfterClassesprotected org.junit.runners.model.Statement withAfterClasses(org.junit.runners.model.Statement statement) - Overrides:
- withAfterClassesin class- org.junit.runners.ParentRunner<org.junit.runner.Runner>
 
 - 
beforeTestExecutionpublic boolean beforeTestExecution(Class<? extends AbstractGremlinTest> testClass) Called just prior to test class execution. Return false to ignore test class. By default this always returns true.
 - 
afterTestExecutionpublic void afterTestExecution(Class<? extends AbstractGremlinTest> testClass) Called just after test class execution.
 
- 
 
-