jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r727701 - /jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/RepositoryFactoryImplTest.java
Date Thu, 18 Dec 2008 11:45:03 GMT
Author: mreutegg
Date: Thu Dec 18 03:45:02 2008
New Revision: 727701

URL: http://svn.apache.org/viewvc?rev=727701&view=rev
Log:
JCR-1913: Use configured credentials in RepositoryFactoryImplTest

Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/RepositoryFactoryImplTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/RepositoryFactoryImplTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/RepositoryFactoryImplTest.java?rev=727701&r1=727700&r2=727701&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/RepositoryFactoryImplTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/integration/RepositoryFactoryImplTest.java
Thu Dec 18 03:45:02 2008
@@ -24,8 +24,6 @@
 
 import javax.jcr.RepositoryException;
 import javax.jcr.Repository;
-import javax.jcr.SimpleCredentials;
-import javax.jcr.Credentials;
 import javax.naming.InitialContext;
 import javax.naming.Context;
 import javax.imageio.spi.ServiceRegistry;
@@ -35,17 +33,13 @@
 import org.apache.jackrabbit.core.RepositoryFactoryImpl;
 import org.apache.jackrabbit.core.jndi.provider.DummyInitialContextFactory;
 import org.apache.jackrabbit.core.jndi.RegistryHelper;
-
-import junit.framework.TestCase;
+import org.apache.jackrabbit.test.AbstractJCRTest;
 
 /**
  * <code>RepositoryFactoryImplTest</code> performs tests on
  * {@link RepositoryFactoryImpl}.
  */
-public class RepositoryFactoryImplTest extends TestCase {
-
-    private static final Credentials CREDENTIALS
-            = new SimpleCredentials("user", "pass".toCharArray());
+public class RepositoryFactoryImplTest extends AbstractJCRTest {
 
     private static final File TARGET = new File("target");
 
@@ -155,7 +149,7 @@
     //-------------------------< internal helper >------------------------------
 
     private static void checkRepository(Repository r) throws RepositoryException {
-        r.login(CREDENTIALS).logout();
+        r.login(helper.getSuperuserCredentials()).logout();
     }
 
     private static void setProperties() {



Mime
View raw message