Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 42307200B91 for ; Thu, 29 Sep 2016 17:27:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3F40E160AE8; Thu, 29 Sep 2016 15:27:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 848BD160AC1 for ; Thu, 29 Sep 2016 17:27:12 +0200 (CEST) Received: (qmail 88690 invoked by uid 500); 29 Sep 2016 15:27:11 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 88677 invoked by uid 99); 29 Sep 2016 15:27:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2016 15:27:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 57BDE1A0898 for ; Thu, 29 Sep 2016 15:27:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id NjfK8iV7pG7B for ; Thu, 29 Sep 2016 15:27:10 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 672DD5FB09 for ; Thu, 29 Sep 2016 15:27:10 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7A1E6E0147 for ; Thu, 29 Sep 2016 15:27:09 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 770673A05B4 for ; Thu, 29 Sep 2016 15:27:09 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1762796 - /sling/branches/testing/mocks/sling-mock-1.x/src/test/java/org/apache/sling/testing/mock/sling/context/AbstractSlingContextImplTest.java Date: Thu, 29 Sep 2016 15:27:09 -0000 To: commits@sling.apache.org From: sseifert@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160929152709.770673A05B4@svn01-us-west.apache.org> archived-at: Thu, 29 Sep 2016 15:27:13 -0000 Author: sseifert Date: Thu Sep 29 15:27:09 2016 New Revision: 1762796 URL: http://svn.apache.org/viewvc?rev=1762796&view=rev Log: SLING-6077 enhance unit test to ensure the problem from this bug ticket does not exist in sling-mock 1.x Modified: sling/branches/testing/mocks/sling-mock-1.x/src/test/java/org/apache/sling/testing/mock/sling/context/AbstractSlingContextImplTest.java Modified: sling/branches/testing/mocks/sling-mock-1.x/src/test/java/org/apache/sling/testing/mock/sling/context/AbstractSlingContextImplTest.java URL: http://svn.apache.org/viewvc/sling/branches/testing/mocks/sling-mock-1.x/src/test/java/org/apache/sling/testing/mock/sling/context/AbstractSlingContextImplTest.java?rev=1762796&r1=1762795&r2=1762796&view=diff ============================================================================== --- sling/branches/testing/mocks/sling-mock-1.x/src/test/java/org/apache/sling/testing/mock/sling/context/AbstractSlingContextImplTest.java (original) +++ sling/branches/testing/mocks/sling-mock-1.x/src/test/java/org/apache/sling/testing/mock/sling/context/AbstractSlingContextImplTest.java Thu Sep 29 15:27:09 2016 @@ -143,8 +143,8 @@ public abstract class AbstractSlingConte @Test public void testResourceResolverFactory() { - ResourceResolverFactory factory = context.getService(ResourceResolverFactory.class); - assertNotNull(factory); + ResourceResolverFactory[] factories = context.getServices(ResourceResolverFactory.class, null); + assertEquals(1, factories.length); } @Model(adaptables = SlingHttpServletRequest.class)