public class PlatformRunner extends ParentRunner<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 String |
PLATFORM_CLASSNAME |
static String |
PLATFORM_INCLUDES |
static String |
PLATFORM_RESOURCE |
Constructor and Description |
---|
PlatformRunner(Class<PlatformTestCase> testClass) |
Modifier and Type | Method and Description |
---|---|
protected Description |
describeChild(Runner runner) |
void |
filter(Filter filter) |
protected List<Runner> |
getChildren() |
protected static Set<Class<? extends TestPlatform>> |
getPlatformClassesFromClasspath(ClassLoader classLoader) |
static TestPlatform |
makeInstance(Class<? extends TestPlatform> type) |
protected void |
runChild(Runner runner,
RunNotifier runNotifier) |
childrenInvoker, classBlock, classRules, collectInitializationErrors, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
public static final String PLATFORM_INCLUDES
public static final String PLATFORM_RESOURCE
public static final String PLATFORM_CLASSNAME
public PlatformRunner(Class<PlatformTestCase> testClass) throws Throwable
Throwable
public static TestPlatform makeInstance(Class<? extends TestPlatform> type)
protected List<Runner> getChildren()
getChildren
in class ParentRunner<Runner>
protected static Set<Class<? extends TestPlatform>> getPlatformClassesFromClasspath(ClassLoader classLoader) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
protected Description describeChild(Runner runner)
describeChild
in class ParentRunner<Runner>
protected void runChild(Runner runner, RunNotifier runNotifier)
runChild
in class ParentRunner<Runner>
public void filter(Filter filter) throws NoTestsRemainException
filter
in interface Filterable
filter
in class ParentRunner<Runner>
NoTestsRemainException
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.