You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cr...@apache.org on 2020/11/20 16:57:14 UTC

[sling-org-apache-sling-junit-core] 01/01: SLING-9915 Remove deprecated flags

This is an automated email from the ASF dual-hosted git repository.

cris pushed a commit to branch SLING-9915-Support-for-SlingAnnotationsTestRunner
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-junit-core.git

commit bbd02be7923b17749ae96be6afa2ee94e8ec82c3
Author: Cris Rockwell <cm...@umich.edu>
AuthorDate: Fri Nov 20 11:56:31 2020 -0500

    SLING-9915 Remove deprecated flags
---
 .../apache/sling/junit/annotations/SlingAnnotationsTestRunner.java    | 4 ++--
 src/main/java/org/apache/sling/junit/annotations/TestReference.java   | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/sling/junit/annotations/SlingAnnotationsTestRunner.java b/src/main/java/org/apache/sling/junit/annotations/SlingAnnotationsTestRunner.java
index 9351d73..79809c6 100644
--- a/src/main/java/org/apache/sling/junit/annotations/SlingAnnotationsTestRunner.java
+++ b/src/main/java/org/apache/sling/junit/annotations/SlingAnnotationsTestRunner.java
@@ -30,10 +30,10 @@ import org.slf4j.LoggerFactory;
  *  A test that has RunWith=SlingAnnotationsTestRunner can
  *  use @TestReference, for example, to access OSGi services.
  *  
- *  @deprecated - the {#link TeleporterRule} is a much simpler way of executing
+ *  FYI - {#link TeleporterRule} is another way of executing
  *      server-side tests, including OSGi service injection.
  */
-@Deprecated
+
 public class SlingAnnotationsTestRunner extends BlockJUnit4ClassRunner {
     private static final Logger log = LoggerFactory.getLogger(SlingAnnotationsTestRunner.class);
 
diff --git a/src/main/java/org/apache/sling/junit/annotations/TestReference.java b/src/main/java/org/apache/sling/junit/annotations/TestReference.java
index 21bb398..56791cb 100644
--- a/src/main/java/org/apache/sling/junit/annotations/TestReference.java
+++ b/src/main/java/org/apache/sling/junit/annotations/TestReference.java
@@ -26,11 +26,10 @@ import java.lang.annotation.Target;
  * Annotation used to inject services in test classes. Similar to the Felix @Reference annotation, but we need RetentionPolicy.RUNTIME so we
  * cannot use that one.
  *
- * @deprecated - the {#link TeleporterRule} is a much simpler way of executing server-side tests, including OSGi service injection.
+ * FYI {#link TeleporterRule} is another way of executing server-side tests, including OSGi service injection.
  */
 @Target({ElementType.FIELD})
 @Retention(RetentionPolicy.RUNTIME)
-@Deprecated
 public @interface TestReference {
     /**
      * The local name of the reference. Default value is the name of the field to which the annotation applies.