directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r729664 - /directory/apacheds/trunk/schema-extras/src/test/java/org/apache/directory/server/schema/bootstrap/ExtraSchemaLoadTest.java
Date Sat, 27 Dec 2008 19:44:11 GMT
Author: elecharny
Date: Sat Dec 27 11:44:10 2008
New Revision: 729664

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

Modified:
    directory/apacheds/trunk/schema-extras/src/test/java/org/apache/directory/server/schema/bootstrap/ExtraSchemaLoadTest.java

Modified: directory/apacheds/trunk/schema-extras/src/test/java/org/apache/directory/server/schema/bootstrap/ExtraSchemaLoadTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/schema-extras/src/test/java/org/apache/directory/server/schema/bootstrap/ExtraSchemaLoadTest.java?rev=729664&r1=729663&r2=729664&view=diff
==============================================================================
--- directory/apacheds/trunk/schema-extras/src/test/java/org/apache/directory/server/schema/bootstrap/ExtraSchemaLoadTest.java
(original)
+++ directory/apacheds/trunk/schema-extras/src/test/java/org/apache/directory/server/schema/bootstrap/ExtraSchemaLoadTest.java
Sat Dec 27 11:44:10 2008
@@ -30,7 +30,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;
@@ -139,7 +138,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" );
@@ -160,7 +159,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" );
@@ -247,7 +246,7 @@
         type = registries.getAttributeTypeRegistry().lookup( "apacheAlias" );
         assertNotNull( type );
 
-        type = registries.getAttributeTypeRegistry().lookup( ApacheSchemaConstants.APACHE_N_DN_AT
);
+        type = registries.getAttributeTypeRegistry().lookup( "apacheNdn" );
         assertNotNull( type );
 
         type = registries.getAttributeTypeRegistry().lookup( "apacheUpdn" );



Mime
View raw message