directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vte...@apache.org
Subject svn commit: r123102 - in incubator/directory/janus/trunk: core/impl/src/java/org/apache/janus/authentication/realm core/impl/src/test/org/apache/janus/authentication/realm script/src/test/org/apache/janus/script/xml
Date Wed, 22 Dec 2004 15:00:36 GMT
Author: vtence
Date: Wed Dec 22 07:00:34 2004
New Revision: 123102

URL: http://svn.apache.org/viewcvs?view=rev&rev=123102
Log:
DefaultRealm renamed to MemoryRealm
Added:
   incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/MemoryRealm.java
      - copied, changed from r122644, incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/DefaultRealm.java
   incubator/directory/janus/trunk/core/impl/src/test/org/apache/janus/authentication/realm/MemoryRealmTest.java
      - copied, changed from r122644, incubator/directory/janus/trunk/core/impl/src/test/org/apache/janus/authentication/realm/DefaultRealmTest.java
Removed:
   incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/DefaultRealm.java
   incubator/directory/janus/trunk/core/impl/src/test/org/apache/janus/authentication/realm/DefaultRealmTest.java
Modified:
   incubator/directory/janus/trunk/script/src/test/org/apache/janus/script/xml/Dom4JRealmBuilderTest.java

Deleted: /incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/DefaultRealm.java
Url: http://svn.apache.org/viewcvs/incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/DefaultRealm.java?view=auto&rev=123101
==============================================================================

Copied: incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/MemoryRealm.java
(from r122644, incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/DefaultRealm.java)
Url: http://svn.apache.org/viewcvs/incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/MemoryRealm.java?view=diff&rev=123102&p1=incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/DefaultRealm.java&r1=122644&p2=incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/MemoryRealm.java&r2=123102
==============================================================================
--- incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/DefaultRealm.java
(original)
+++ incubator/directory/janus/trunk/core/impl/src/java/org/apache/janus/authentication/realm/MemoryRealm.java
Wed Dec 22 07:00:34 2004
@@ -26,17 +26,17 @@
 /**
  * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
  */
-public class DefaultRealm implements MutableRealm
+public class MemoryRealm implements MutableRealm
 {
     private final AuthenticationMethod m_authenticationMethod;
     private final Collection m_identities;
 
-    public DefaultRealm()
+    public MemoryRealm()
     {
         this( new UsernamePasswordAuthentication() );
     }
 
-    public DefaultRealm( AuthenticationMethod authenticationMethod )
+    public MemoryRealm( AuthenticationMethod authenticationMethod )
     {
         m_authenticationMethod = authenticationMethod;
         m_identities = new ArrayList();

Deleted: /incubator/directory/janus/trunk/core/impl/src/test/org/apache/janus/authentication/realm/DefaultRealmTest.java
Url: http://svn.apache.org/viewcvs/incubator/directory/janus/trunk/core/impl/src/test/org/apache/janus/authentication/realm/DefaultRealmTest.java?view=auto&rev=123101
==============================================================================

Copied: incubator/directory/janus/trunk/core/impl/src/test/org/apache/janus/authentication/realm/MemoryRealmTest.java
(from r122644, incubator/directory/janus/trunk/core/impl/src/test/org/apache/janus/authentication/realm/DefaultRealmTest.java)
Url: http://svn.apache.org/viewcvs/incubator/directory/janus/trunk/core/impl/src/test/org/apache/janus/authentication/realm/MemoryRealmTest.java?view=diff&rev=123102&p1=incubator/directory/janus/trunk/core/impl/src/test/org/apache/janus/authentication/realm/DefaultRealmTest.java&r1=122644&p2=incubator/directory/janus/trunk/core/impl/src/test/org/apache/janus/authentication/realm/MemoryRealmTest.java&r2=123102
==============================================================================
--- incubator/directory/janus/trunk/core/impl/src/test/org/apache/janus/authentication/realm/DefaultRealmTest.java
(original)
+++ incubator/directory/janus/trunk/core/impl/src/test/org/apache/janus/authentication/realm/MemoryRealmTest.java
Wed Dec 22 07:00:34 2004
@@ -26,18 +26,18 @@
 /**
  * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
  */
-public class DefaultRealmTest extends MockObjectTestCase
+public class MemoryRealmTest extends MockObjectTestCase
 {
     public static void main( String[] args )
     {
-        junit.textui.TestRunner.run( DefaultRealmTest.class );
+        junit.textui.TestRunner.run( MemoryRealmTest.class );
     }
 
-    private DefaultRealm m_realm;
+    private MemoryRealm m_realm;
 
     protected void setUp() throws Exception
     {
-        m_realm = new DefaultRealm();
+        m_realm = new MemoryRealm();
     }
 
     public void testValidationFailsIfCredentialSetNotSupported()

Modified: incubator/directory/janus/trunk/script/src/test/org/apache/janus/script/xml/Dom4JRealmBuilderTest.java
Url: http://svn.apache.org/viewcvs/incubator/directory/janus/trunk/script/src/test/org/apache/janus/script/xml/Dom4JRealmBuilderTest.java?view=diff&rev=123102&p1=incubator/directory/janus/trunk/script/src/test/org/apache/janus/script/xml/Dom4JRealmBuilderTest.java&r1=123101&p2=incubator/directory/janus/trunk/script/src/test/org/apache/janus/script/xml/Dom4JRealmBuilderTest.java&r2=123102
==============================================================================
--- incubator/directory/janus/trunk/script/src/test/org/apache/janus/script/xml/Dom4JRealmBuilderTest.java
(original)
+++ incubator/directory/janus/trunk/script/src/test/org/apache/janus/script/xml/Dom4JRealmBuilderTest.java
Wed Dec 22 07:00:34 2004
@@ -17,7 +17,7 @@
 package org.apache.janus.script.xml;
 
 import org.apache.janus.authentication.CredentialSet;
-import org.apache.janus.authentication.realm.DefaultRealm;
+import org.apache.janus.authentication.realm.MemoryRealm;
 import org.apache.janus.authentication.realm.MutableRealm;
 import org.apache.janus.authentication.realm.PasswordCredential;
 import org.apache.janus.authentication.realm.UsernameCredential;
@@ -68,7 +68,7 @@
                 ( RealmBuilderMonitor ) mockMonitor.proxy() );
 
         mockMonitor.expects( once() ).method( "duplicateIdentity" );
-        builder.buildRealm( new DefaultRealm( new UsernamePasswordAuthentication() ) );
+        builder.buildRealm( new MemoryRealm( new UsernamePasswordAuthentication() ) );
 
         mockMonitor.verify();
     }

Mime
View raw message