sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sseif...@apache.org
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 GMT
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)



Mime
View raw message