Class SlingAnnotationsTestRunner
- java.lang.Object
-
- org.junit.runner.Runner
-
- org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
-
- org.junit.runners.BlockJUnit4ClassRunner
-
- org.apache.sling.junit.annotations.SlingAnnotationsTestRunner
-
- All Implemented Interfaces:
org.junit.runner.Describable,org.junit.runner.manipulation.Filterable,org.junit.runner.manipulation.Sortable
@Deprecated public class SlingAnnotationsTestRunner extends org.junit.runners.BlockJUnit4ClassRunner
Deprecated.- the {#link TeleporterRule} is a much simpler way of executing server-side tests, including OSGi service injection.TestRunner which uses a TestObjectProcessor to handle annotations in test classes. A test that has RunWith=SlingAnnotationsTestRunner can use @TestReference, for example, to access OSGi services.
-
-
Constructor Summary
Constructors Constructor Description SlingAnnotationsTestRunner(Class<?> clazz)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected ObjectcreateTest()Deprecated.-
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
-
-
-
-
Constructor Detail
-
SlingAnnotationsTestRunner
public SlingAnnotationsTestRunner(Class<?> clazz) throws org.junit.runners.model.InitializationError
Deprecated.- Throws:
org.junit.runners.model.InitializationError
-
-