incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1514698 - /sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java
Date Fri, 16 Aug 2013 13:15:05 GMT
Author: bdelacretaz
Date: Fri Aug 16 13:15:05 2013
New Revision: 1514698

URL: http://svn.apache.org/r1514698
Log:
SLING-2788 testWrongLogin (ignored for now)

Modified:
    sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java

Modified: sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java
URL: http://svn.apache.org/viewvc/sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java?rev=1514698&r1=1514697&r2=1514698&view=diff
==============================================================================
--- sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java
(original)
+++ sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java
Fri Aug 16 13:15:05 2013
@@ -21,11 +21,14 @@ import static org.junit.Assert.assertEqu
 import static org.junit.Assert.assertNotNull;
 
 import javax.inject.Inject;
+import javax.jcr.Credentials;
 import javax.jcr.Node;
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
+import javax.jcr.SimpleCredentials;
 
 import org.apache.sling.jcr.api.SlingRepository;
+import org.junit.Ignore;
 import org.junit.Test;
 
 /** Base class for SlingRepository tests, contains tests
@@ -56,6 +59,13 @@ public abstract class SlingRepositoryITB
         s.logout();
     }
 
+    @Ignore("Fails in OakRepositoryIT due to the use of OpenSecurityProvider")
+    @Test(expected=RepositoryException.class)
+    public void testWrongLogin() throws RepositoryException {
+        final Credentials creds = new SimpleCredentials("badName", "badPAssword".toCharArray());
+        repository.login(creds).logout();
+    }
+
     @Test
     public void testCreateRetrieveNode() throws RepositoryException {
         Session s = repository.loginAdministrative(null);



Mime
View raw message