public class PlatformRunner extends org.junit.runners.ParentRunner<org.junit.runner.Runner>
Runner sub-class for injecting different platform and planners
into the *PlatformTest classes.
It works by loading the platform.classname property from the cascading/platform/platform.properties
resource. Every new platform should provide this resource.
To test against a specific platform, simply make sure the above resource for the platform in question is in the test CLASSPATH. The simplest way is to add it as a dependency.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PlatformRunner.Platform |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PLATFORM_CLASSNAME |
static java.lang.String |
PLATFORM_INCLUDES |
static java.lang.String |
PLATFORM_RESOURCE |
| Constructor and Description |
|---|
PlatformRunner(java.lang.Class<PlatformTestCase> testClass) |
| Modifier and Type | Method and Description |
|---|---|
protected org.junit.runner.Description |
describeChild(org.junit.runner.Runner runner) |
void |
filter(org.junit.runner.manipulation.Filter filter) |
protected java.util.List<org.junit.runner.Runner> |
getChildren() |
protected static java.util.Set<java.lang.Class<? extends TestPlatform>> |
getPlatformClassesFromClasspath(java.lang.ClassLoader classLoader) |
static TestPlatform |
makeInstance(java.lang.Class<? extends TestPlatform> type) |
protected void |
runChild(org.junit.runner.Runner runner,
org.junit.runner.notification.RunNotifier runNotifier) |
childrenInvoker, classBlock, classRules, collectInitializationErrors, createTestClass, getDescription, getName, getRunnerAnnotations, getTestClass, isIgnored, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolationpublic static final java.lang.String PLATFORM_INCLUDES
public static final java.lang.String PLATFORM_RESOURCE
public static final java.lang.String PLATFORM_CLASSNAME
public PlatformRunner(java.lang.Class<PlatformTestCase> testClass) throws java.lang.Throwable
java.lang.Throwablepublic static TestPlatform makeInstance(java.lang.Class<? extends TestPlatform> type)
protected java.util.List<org.junit.runner.Runner> getChildren()
getChildren in class org.junit.runners.ParentRunner<org.junit.runner.Runner>protected static java.util.Set<java.lang.Class<? extends TestPlatform>> getPlatformClassesFromClasspath(java.lang.ClassLoader classLoader) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionprotected org.junit.runner.Description describeChild(org.junit.runner.Runner runner)
describeChild in class org.junit.runners.ParentRunner<org.junit.runner.Runner>protected void runChild(org.junit.runner.Runner runner, org.junit.runner.notification.RunNotifier runNotifier)
runChild in class org.junit.runners.ParentRunner<org.junit.runner.Runner>public void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException
filter in interface org.junit.runner.manipulation.Filterablefilter in class org.junit.runners.ParentRunner<org.junit.runner.Runner>org.junit.runner.manipulation.NoTestsRemainExceptionCopyright © 2007-2021 Cascading Maintainers. All Rights Reserved.