directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r729663 - /directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/schema/bootstrap/BootstrapSchemaLoaderTest.java
Date Sat, 27 Dec 2008 19:43:34 GMT
Author: elecharny
Date: Sat Dec 27 11:43:34 2008
New Revision: 729663

URL: http://svn.apache.org/viewvc?rev=729663&view=rev
Log:
Don't use extenal constants in tests.

Modified:
    directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/schema/bootstrap/BootstrapSchemaLoaderTest.java

Modified: directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/schema/bootstrap/BootstrapSchemaLoaderTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/schema/bootstrap/BootstrapSchemaLoaderTest.java?rev=729663&r1=729662&r2=729663&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/schema/bootstrap/BootstrapSchemaLoaderTest.java
(original)
+++ directory/apacheds/trunk/core/src/test/java/org/apache/directory/server/core/schema/bootstrap/BootstrapSchemaLoaderTest.java
Sat Dec 27 11:43:34 2008
@@ -28,7 +28,6 @@
 
 import junit.framework.TestCase;
 
-import org.apache.directory.server.constants.ApacheSchemaConstants;
 import org.apache.directory.server.schema.bootstrap.ApacheSchema;
 import org.apache.directory.server.schema.bootstrap.BootstrapSchemaLoader;
 import org.apache.directory.server.schema.bootstrap.CoreSchema;
@@ -113,7 +112,7 @@
         loader.load( apacheSchema, registries, false );
 
         AttributeType type;
-        type = registries.getAttributeTypeRegistry().lookup( ApacheSchemaConstants.APACHE_N_DN_AT
);
+        type = registries.getAttributeTypeRegistry().lookup( "apacheNdn" );
         assertNotNull( type );
 
         type = registries.getAttributeTypeRegistry().lookup( "apacheAlias" );
@@ -132,7 +131,7 @@
 
         loader.loadWithDependencies( schemas, registries );
         AttributeType type;
-        type = registries.getAttributeTypeRegistry().lookup( ApacheSchemaConstants.APACHE_N_DN_AT
);
+        type = registries.getAttributeTypeRegistry().lookup( "apacheNdn" );
         assertNotNull( type );
 
         type = registries.getAttributeTypeRegistry().lookup( "apacheAlias" );



Mime
View raw message