cascading.platform
Class PlatformRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runner.Runner>
cascading.platform.PlatformRunner
- All Implemented Interfaces:
- org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
public class PlatformRunner
- extends org.junit.runners.ParentRunner<org.junit.runner.Runner>
Class ParentRunner is a JUnit 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.
Methods inherited from class org.junit.runners.ParentRunner |
childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses |
Methods inherited from class org.junit.runner.Runner |
testCount |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PLATFORM_INCLUDES
public static final String PLATFORM_INCLUDES
- See Also:
- Constant Field Values
PLATFORM_RESOURCE
public static final String PLATFORM_RESOURCE
- See Also:
- Constant Field Values
PLATFORM_CLASSNAME
public static final String PLATFORM_CLASSNAME
- See Also:
- Constant Field Values
PlatformRunner
public PlatformRunner(Class<PlatformTestCase> testClass)
throws Throwable
- Throws:
Throwable
makeInstance
public static TestPlatform makeInstance(Class<? extends TestPlatform> type)
getChildren
protected List<org.junit.runner.Runner> getChildren()
- Specified by:
getChildren
in class org.junit.runners.ParentRunner<org.junit.runner.Runner>
getPlatformClassesFromClasspath
protected static Set<Class<? extends TestPlatform>> getPlatformClassesFromClasspath(ClassLoader classLoader)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
describeChild
protected org.junit.runner.Description describeChild(org.junit.runner.Runner runner)
- Specified by:
describeChild
in class org.junit.runners.ParentRunner<org.junit.runner.Runner>
runChild
protected void runChild(org.junit.runner.Runner runner,
org.junit.runner.notification.RunNotifier runNotifier)
- Specified by:
runChild
in class org.junit.runners.ParentRunner<org.junit.runner.Runner>
Copyright © 2007-2014 Concurrent, Inc. All Rights Reserved.