You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by en...@apache.org on 2021/06/21 16:46:00 UTC

[sling-org-apache-sling-auth-core] branch master updated: suppress warnings about usage and testing of deprecated apis

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

enorman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-auth-core.git


The following commit(s) were added to refs/heads/master by this push:
     new a22377e  suppress warnings about usage and testing of deprecated apis
a22377e is described below

commit a22377ee1820cf00eba59507d3eb75a5443727f9
Author: Eric Norman <en...@apache.org>
AuthorDate: Mon Jun 21 09:45:49 2021 -0700

    suppress warnings about usage and testing of deprecated apis
---
 .../sling/auth/core/impl/AuthenticationHandlersManagerTest.java       | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/test/java/org/apache/sling/auth/core/impl/AuthenticationHandlersManagerTest.java b/src/test/java/org/apache/sling/auth/core/impl/AuthenticationHandlersManagerTest.java
index 9e1532f..14c3450 100644
--- a/src/test/java/org/apache/sling/auth/core/impl/AuthenticationHandlersManagerTest.java
+++ b/src/test/java/org/apache/sling/auth/core/impl/AuthenticationHandlersManagerTest.java
@@ -94,6 +94,7 @@ public class AuthenticationHandlersManagerTest {
 
     private final List<ServiceReference<?>> refs = new ArrayList<>();
 
+    @SuppressWarnings("deprecation")
     private ServiceReference<?> createServiceReference(final String[] paths) {
         final ServiceReference<?> ref = mock(ServiceReference.class);
         when(ref.getProperty(org.apache.sling.engine.auth.AuthenticationHandler.PATH_PROPERTY)).thenReturn(paths);
@@ -192,6 +193,7 @@ public class AuthenticationHandlersManagerTest {
         assertTrue(manager.getHolders().isEmpty());
     }
 
+    @Deprecated
     @Test public void testAddRemoveRegistrationLegacy() throws Throwable {
         final SlingAuthenticator.Config config = SlingAuthenticatorTest.createDefaultConfig();
         when(config.auth_http()).thenReturn(SlingAuthenticator.HTTP_AUTH_DISABLED);
@@ -212,6 +214,7 @@ public class AuthenticationHandlersManagerTest {
         assertTrue(manager.getHolders().isEmpty());
     }
 
+    @Deprecated
     @Test public void testAddUpdateRemoveRegistrationLegacy() throws Throwable {
         final SlingAuthenticator.Config config = SlingAuthenticatorTest.createDefaultConfig();
         when(config.auth_http()).thenReturn(SlingAuthenticator.HTTP_AUTH_DISABLED);
@@ -242,6 +245,7 @@ public class AuthenticationHandlersManagerTest {
         assertTrue(manager.getHolders().isEmpty());
     }
 
+    @Deprecated
     @Test public void testDuplicateRegistrationLegacy() throws Throwable {
         final SlingAuthenticator.Config config = SlingAuthenticatorTest.createDefaultConfig();
         when(config.auth_http()).thenReturn(SlingAuthenticator.HTTP_AUTH_DISABLED);