sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject [sling-org-apache-sling-testing-sling-mock-oak] 15/27: SLING-5007 use same unit tests for root node tests for all resource resolver types without counting the number of children.
Date Tue, 07 Nov 2017 10:23:36 GMT
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.testing.sling-mock-oak-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-sling-mock-oak.git

commit 8d645b6b1093a744f5ba29db1576c64d198a4848
Author: Stefan Seifert <sseifert@apache.org>
AuthorDate: Wed Sep 16 09:35:50 2015 +0000

    SLING-5007 use same unit tests for root node tests for all resource resolver types without
counting the number of children.
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/testing/mocks/sling-mock-oak@1703373
13f79535-47bb-0310-9956-ffa450edef68
---
 .../oak/resource/SlingCrudResourceResolverTest.java    | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/src/test/java/org/apache/sling/testing/mock/sling/oak/resource/SlingCrudResourceResolverTest.java
b/src/test/java/org/apache/sling/testing/mock/sling/oak/resource/SlingCrudResourceResolverTest.java
index 9519dd6..ec7755c 100644
--- a/src/test/java/org/apache/sling/testing/mock/sling/oak/resource/SlingCrudResourceResolverTest.java
+++ b/src/test/java/org/apache/sling/testing/mock/sling/oak/resource/SlingCrudResourceResolverTest.java
@@ -18,23 +18,17 @@
  */
 package org.apache.sling.testing.mock.sling.oak.resource;
 
-import static org.junit.Assert.assertFalse;
-
 import java.io.IOException;
-import java.util.List;
 
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
 
-import org.apache.sling.api.resource.Resource;
 import org.apache.sling.api.resource.ResourceResolver;
 import org.apache.sling.commons.testing.jcr.RepositoryUtil;
 import org.apache.sling.testing.mock.sling.MockSling;
 import org.apache.sling.testing.mock.sling.ResourceResolverType;
 import org.apache.sling.testing.mock.sling.resource.AbstractSlingCrudResourceResolverTest;
 
-import com.google.common.collect.Lists;
-
 public class SlingCrudResourceResolverTest extends AbstractSlingCrudResourceResolverTest
{
 
     @Override
@@ -58,16 +52,4 @@ public class SlingCrudResourceResolverTest extends AbstractSlingCrudResourceReso
         return resolver;
     }
 
-    @Override
-    public void testListChildren_RootNode() throws IOException {
-        Resource resource1 = resourceResolver.getResource("/");
-
-        // relax test conditions to check only for none-empty because in real repository
multiple test notes may be created in parallel
-        List<Resource> children = Lists.newArrayList(resource1.listChildren());
-        assertFalse(children.isEmpty());
-
-        children = Lists.newArrayList(resource1.getChildren());
-        assertFalse(children.isEmpty());
-    }
-    
 }

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <commits@sling.apache.org>.

Mime
View raw message