Class 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.
    • Method Summary

      • Methods inherited from class org.junit.runners.ParentRunner

        filter, getDescription, getTestClass, run, setScheduler, sort
      • Methods inherited from class org.junit.runner.Runner

        testCount
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SlingAnnotationsTestRunner

        public SlingAnnotationsTestRunner​(java.lang.Class<?> clazz)
                                   throws org.junit.runners.model.InitializationError
        Deprecated.
        Throws:
        org.junit.runners.model.InitializationError