public abstract class AbstractGremlinSuite
extends Suite
Modifier and Type | Class and Description |
---|---|
static class |
AbstractGremlinSuite.OptOutTestFilter
Filter for tests in the suite which is controlled by the
Graph.OptOut annotation. |
Constructor and Description |
---|
AbstractGremlinSuite(Class<?> klass,
RunnerBuilder builder,
Class<?>[] testsToExecute,
Class<?>[] testsToEnforce,
boolean gremlinFlavorSuite,
TraversalEngine.Type traversalEngineType)
Constructs a Gremlin Test Suite implementation.
|
Modifier and Type | Method and Description |
---|---|
void |
afterTestExecution(Class<? extends AbstractGremlinTest> testClass)
Called just after test class execution.
|
boolean |
beforeTestExecution(Class<? extends AbstractGremlinTest> testClass)
Called just prior to test class execution.
|
static <any> |
getGraphProviderClass(Class<?> klass) |
protected void |
runChild(Runner runner,
RunNotifier notifier) |
protected Statement |
withAfterClasses(Statement statement) |
public AbstractGremlinSuite(Class<?> klass, RunnerBuilder builder, Class<?>[] testsToExecute, Class<?>[] testsToEnforce, boolean gremlinFlavorSuite, TraversalEngine.Type traversalEngineType) throws InitializationError
klass
- Required for JUnit Suite constructionbuilder
- Required for JUnit Suite constructiontestsToExecute
- The list of tests to executetestsToEnforce
- 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 null
for no
enforcement).gremlinFlavorSuite
- Ignore validation of Graph.OptIn
annotations which is typically reserved for structure teststraversalEngineType
- The TraversalEngine.Type
to enforce on this suiteInitializationError
public static <any> getGraphProviderClass(Class<?> klass) throws InitializationError
InitializationError
protected void runChild(Runner runner, RunNotifier notifier)
protected Statement withAfterClasses(Statement statement)
public boolean beforeTestExecution(Class<? extends AbstractGremlinTest> testClass)
public void afterTestExecution(Class<? extends AbstractGremlinTest> testClass)
Copyright © 2013–2021 Apache Software Foundation. All rights reserved.