directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1733885 - in /directory/shared/trunk/ldap/schema/converter/src: main/java/org/apache/directory/api/ldap/schema/converter/AttributeTypeHolder.java test/java/org/apache/directory/api/ldap/schema/converter/TestSchemaToLdif.java
Date Mon, 07 Mar 2016 09:05:33 GMT
Author: elecharny
Date: Mon Mar  7 09:05:33 2016
New Revision: 1733885

URL: http://svn.apache.org/viewvc?rev=1733885&view=rev
Log:
Fox for DIRAPI-274

Modified:
    directory/shared/trunk/ldap/schema/converter/src/main/java/org/apache/directory/api/ldap/schema/converter/AttributeTypeHolder.java
    directory/shared/trunk/ldap/schema/converter/src/test/java/org/apache/directory/api/ldap/schema/converter/TestSchemaToLdif.java

Modified: directory/shared/trunk/ldap/schema/converter/src/main/java/org/apache/directory/api/ldap/schema/converter/AttributeTypeHolder.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/schema/converter/src/main/java/org/apache/directory/api/ldap/schema/converter/AttributeTypeHolder.java?rev=1733885&r1=1733884&r2=1733885&view=diff
==============================================================================
--- directory/shared/trunk/ldap/schema/converter/src/main/java/org/apache/directory/api/ldap/schema/converter/AttributeTypeHolder.java
(original)
+++ directory/shared/trunk/ldap/schema/converter/src/main/java/org/apache/directory/api/ldap/schema/converter/AttributeTypeHolder.java
Mon Mar  7 09:05:33 2016
@@ -368,7 +368,7 @@ public class AttributeTypeHolder extends
         // The usage value
         if ( usage != UsageEnum.USER_APPLICATIONS )
         {
-            sb.append( "m-usage: " ).append( usage.render() ).append( '\n' );
+            sb.append( "m-usage: " ).append( usage.toString() ).append( '\n' );
         }
 
         // The extensions

Modified: directory/shared/trunk/ldap/schema/converter/src/test/java/org/apache/directory/api/ldap/schema/converter/TestSchemaToLdif.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/schema/converter/src/test/java/org/apache/directory/api/ldap/schema/converter/TestSchemaToLdif.java?rev=1733885&r1=1733884&r2=1733885&view=diff
==============================================================================
--- directory/shared/trunk/ldap/schema/converter/src/test/java/org/apache/directory/api/ldap/schema/converter/TestSchemaToLdif.java
(original)
+++ directory/shared/trunk/ldap/schema/converter/src/test/java/org/apache/directory/api/ldap/schema/converter/TestSchemaToLdif.java
Mon Mar  7 09:05:33 2016
@@ -822,7 +822,7 @@ public class TestSchemaToLdif
                 "objectclass: metaTop\n" +
                 "objectclass: top\n" +
                 "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
-                "m-usage: directoryOperation\n\n";
+                "m-usage: DIRECTORY_OPERATION\n\n";
 
         assertEquals( expected, transform( "testATUsageDirOp" ) );
     }
@@ -839,7 +839,7 @@ public class TestSchemaToLdif
                 "objectclass: metaTop\n" +
                 "objectclass: top\n" +
                 "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
-                "m-usage: distributedOperation\n\n";
+                "m-usage: DISTRIBUTED_OPERATION\n\n";
 
         assertEquals( expected, transform( "testATUsageDistrOp" ) );
     }
@@ -856,7 +856,7 @@ public class TestSchemaToLdif
                 "objectclass: metaTop\n" +
                 "objectclass: top\n" +
                 "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
-                "m-usage: dSAOperation\n\n";
+                "m-usage: DSA_OPERATION\n\n";
 
         assertEquals( expected, transform( "testATUsageDsaOp" ) );
     }



Mime
View raw message