Class SlingRemoteTestRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.apache.sling.junit.remote.testrunner.SlingRemoteTest>
org.apache.sling.junit.remote.testrunner.SlingRemoteTestRunner
- All Implemented Interfaces:
org.junit.runner.Describable,org.junit.runner.manipulation.Filterable,org.junit.runner.manipulation.Orderable,org.junit.runner.manipulation.Sortable
public class SlingRemoteTestRunner
extends org.junit.runners.ParentRunner<org.apache.sling.junit.remote.testrunner.SlingRemoteTest>
JUnit TestRunner that talks to a remote
Sling JUnit test servlet. Using this test
runner lets a test class discover tests
that the JUnit servlet can execute, execute
them and report results exactly as if the tests
ran locally.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.junit.runners.model.StatementclassBlock(org.junit.runner.notification.RunNotifier notifier) Similar toParentRunner.classBlock(org.junit.runner.notification.RunNotifier)but will call the methods annotated with @After in addition.protected org.junit.runner.DescriptiondescribeChild(org.apache.sling.junit.remote.testrunner.SlingRemoteTest t) protected List<org.apache.sling.junit.remote.testrunner.SlingRemoteTest> protected voidrunChild(org.apache.sling.junit.remote.testrunner.SlingRemoteTest t, org.junit.runner.notification.RunNotifier notifier) Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classRules, collectInitializationErrors, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, isIgnored, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolationMethods inherited from class org.junit.runner.Runner
testCount
-
Constructor Details
-
SlingRemoteTestRunner
- Throws:
org.junit.runners.model.InitializationError
-
-
Method Details
-
describeChild
protected org.junit.runner.Description describeChild(org.apache.sling.junit.remote.testrunner.SlingRemoteTest t) - Specified by:
describeChildin classorg.junit.runners.ParentRunner<org.apache.sling.junit.remote.testrunner.SlingRemoteTest>
-
getChildren
- Specified by:
getChildrenin classorg.junit.runners.ParentRunner<org.apache.sling.junit.remote.testrunner.SlingRemoteTest>
-
runChild
protected void runChild(org.apache.sling.junit.remote.testrunner.SlingRemoteTest t, org.junit.runner.notification.RunNotifier notifier) - Specified by:
runChildin classorg.junit.runners.ParentRunner<org.apache.sling.junit.remote.testrunner.SlingRemoteTest>
-
classBlock
protected org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier) Similar toParentRunner.classBlock(org.junit.runner.notification.RunNotifier)but will call the methods annotated with @After in addition.- Overrides:
classBlockin classorg.junit.runners.ParentRunner<org.apache.sling.junit.remote.testrunner.SlingRemoteTest>
-