public class SamplesRunner
extends org.junit.runners.ParentRunner<org.gradle.exemplar.model.Sample>
SamplesRoot annotation.| Modifier and Type | Field and Description |
|---|---|
static java.util.List<java.lang.String> |
SAFE_SYSTEM_PROPERTIES |
org.junit.rules.TemporaryFolder |
tmpDir |
| Constructor and Description |
|---|
SamplesRunner(java.lang.Class<?> testClass)
Constructs a new
ParentRunner that will run @TestClass |
| Modifier and Type | Method and Description |
|---|---|
protected org.junit.runner.Description |
describeChild(org.gradle.exemplar.model.Sample child) |
protected java.util.List<org.gradle.exemplar.model.Sample> |
getChildren() |
protected java.io.File |
getImplicitSamplesRootDir()
Allows a subclass to provide an implicit samples root dir when one is not explicitly defined using
SamplesRoot. |
protected java.io.File |
getSamplesRootDir() |
protected void |
runChild(org.gradle.exemplar.model.Sample sample,
org.junit.runner.notification.RunNotifier notifier) |
protected CommandExecutor |
selectExecutor(ExecutionMetadata executionMetadata,
java.io.File workingDir,
org.gradle.exemplar.model.Command command)
Allows a subclass to provide a custom
CommandExecutor. |
childrenInvoker, classBlock, classRules, collectInitializationErrors, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, isIgnored, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolationpublic static final java.util.List<java.lang.String> SAFE_SYSTEM_PROPERTIES
public org.junit.rules.TemporaryFolder tmpDir
public SamplesRunner(java.lang.Class<?> testClass)
throws org.junit.runners.model.InitializationError
ParentRunner that will run @TestClasstestClass - reference to test class being runorg.junit.runners.model.InitializationErrorprotected java.util.List<org.gradle.exemplar.model.Sample> getChildren()
getChildren in class org.junit.runners.ParentRunner<org.gradle.exemplar.model.Sample>protected java.io.File getSamplesRootDir()
@Nullable protected java.io.File getImplicitSamplesRootDir()
SamplesRoot.protected org.junit.runner.Description describeChild(org.gradle.exemplar.model.Sample child)
describeChild in class org.junit.runners.ParentRunner<org.gradle.exemplar.model.Sample>protected void runChild(org.gradle.exemplar.model.Sample sample,
org.junit.runner.notification.RunNotifier notifier)
runChild in class org.junit.runners.ParentRunner<org.gradle.exemplar.model.Sample>protected CommandExecutor selectExecutor(ExecutionMetadata executionMetadata, java.io.File workingDir, org.gradle.exemplar.model.Command command)
CommandExecutor.