directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r818692 - /directory/apacheds/branches/apacheds-schema/core-integ/src/test/java/org/apache/directory/server/core/schema/MetaSchemaHandlerIT.java
Date Fri, 25 Sep 2009 01:45:59 GMT
Author: elecharny
Date: Fri Sep 25 01:45:59 2009
New Revision: 818692

URL: http://svn.apache.org/viewvc?rev=818692&view=rev
Log:
Replaced constants with String values in tests for clarity

Modified:
    directory/apacheds/branches/apacheds-schema/core-integ/src/test/java/org/apache/directory/server/core/schema/MetaSchemaHandlerIT.java

Modified: directory/apacheds/branches/apacheds-schema/core-integ/src/test/java/org/apache/directory/server/core/schema/MetaSchemaHandlerIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/core-integ/src/test/java/org/apache/directory/server/core/schema/MetaSchemaHandlerIT.java?rev=818692&r1=818691&r2=818692&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/core-integ/src/test/java/org/apache/directory/server/core/schema/MetaSchemaHandlerIT.java
(original)
+++ directory/apacheds/branches/apacheds-schema/core-integ/src/test/java/org/apache/directory/server/core/schema/MetaSchemaHandlerIT.java
Fri Sep 25 01:45:59 2009
@@ -133,8 +133,8 @@
         dummySchema.get( "objectClass" ).add( MetaSchemaConstants.META_SCHEMA_OC );
         dummySchema.put( "cn", "dummy" );
         dummySchema.put( MetaSchemaConstants.M_DISABLED_AT, "TRUE" );
-        dummySchema.put( MetaSchemaConstants.M_DEPENDENCIES_AT, "nis" );
-        dummySchema.get( MetaSchemaConstants.M_DEPENDENCIES_AT ).add( "core" );
+        dummySchema.put( "m-dependencies", "nis" );
+        dummySchema.get( "m-dependencies" ).add( "core" );
         schemaRoot.createSubcontext( "cn=dummy", dummySchema );
         
         assertFalse( IntegrationUtils.isEnabled( service, "dummy" ) );
@@ -156,8 +156,8 @@
         dummySchema.get( "objectClass" ).add( MetaSchemaConstants.META_SCHEMA_OC );
         dummySchema.put( "cn", "dummy" );
         dummySchema.put( MetaSchemaConstants.M_DISABLED_AT, "TRUE" );
-        dummySchema.put( MetaSchemaConstants.M_DEPENDENCIES_AT, "missing" );
-        dummySchema.get( MetaSchemaConstants.M_DEPENDENCIES_AT ).add( "core" );
+        dummySchema.put( "m-dependencies", "missing" );
+        dummySchema.get( "m-dependencies" ).add( "core" );
         
         try
         {
@@ -215,7 +215,7 @@
         Attributes dummySchema = new BasicAttributes( "objectClass", "top", true );
         dummySchema.get( "objectClass" ).add( MetaSchemaConstants.META_SCHEMA_OC );
         dummySchema.put( "cn", "dummy" );
-        dummySchema.put( MetaSchemaConstants.M_DEPENDENCIES_AT, "nis" );
+        dummySchema.put( "m-dependencies", "nis" );
         
         try
         {
@@ -283,7 +283,7 @@
         // make the nis schema depend on the dummy schema
         ModificationItem[] mods = new ModificationItem[1];
         mods[0] = new ModificationItem( DirContext.ADD_ATTRIBUTE,
-                new BasicAttribute( MetaSchemaConstants.M_DEPENDENCIES_AT, "dummy" ) );
+                new BasicAttribute( "m-dependencies", "dummy" ) );
         schemaRoot.modifyAttributes( "cn=nis", mods );
         
         // attempt to delete it now & it should fail
@@ -315,7 +315,7 @@
         Attributes dummySchema = new BasicAttributes( "objectClass", "top", true );
         dummySchema.get( "objectClass" ).add( MetaSchemaConstants.META_SCHEMA_OC );
         dummySchema.put( "cn", "dummy" );
-        dummySchema.put( MetaSchemaConstants.M_DEPENDENCIES_AT, "missing" );
+        dummySchema.put( "m-dependencies", "missing" );
         
         try
         {
@@ -497,7 +497,7 @@
         Attributes dummySchema = new BasicAttributes( "objectClass", "top", true );
         dummySchema.get( "objectClass" ).add( MetaSchemaConstants.META_SCHEMA_OC );
         dummySchema.put( "cn", "dummy" );
-        dummySchema.put( MetaSchemaConstants.M_DEPENDENCIES_AT, "nis" );
+        dummySchema.put( "m-dependencies", "nis" );
         schemaRoot.createSubcontext( "cn=dummy", dummySchema );
         
         // check that the nis schema is loaded and the dummy schema is loaded



Mime
View raw message