directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r485961 - in /directory/trunks/shared/ldap/src: main/java/org/apache/directory/shared/ldap/schema/UsageEnum.java test/java/org/apache/directory/shared/ldap/schema/UsageEnumTest.java
Date Tue, 12 Dec 2006 00:08:16 GMT
Author: elecharny
Date: Mon Dec 11 16:08:16 2006
New Revision: 485961

URL: http://svn.apache.org/viewvc?view=rev&rev=485961
Log:
Fixed a pb in typecasing for dSAOperation (was dsaOperation)

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/UsageEnum.java
    directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/UsageEnumTest.java

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/UsageEnum.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/UsageEnum.java?view=diff&rev=485961&r1=485960&r2=485961
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/UsageEnum.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/UsageEnum.java
Mon Dec 11 16:08:16 2006
@@ -94,7 +94,7 @@
         	{
         		return DISTRIBUTED_OPERATION;
         	}
-        	else if ( "dsaOperation".equals( usage ) )
+        	else if ( "dSAOperation".equals( usage ) )
         	{
         		return DSA_OPERATION;	
         	}
@@ -126,7 +126,7 @@
         {
             case DIRECTORY_OPERATION    : return "directoryOperation";
             case DISTRIBUTED_OPERATION  : return "distributedOperation";
-            case DSA_OPERATION          : return "dsaOperation";
+            case DSA_OPERATION          : return "dSAOperation";
             case USER_APPLICATIONS      : return "userApplications";
             default : return "";
         }

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/UsageEnumTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/UsageEnumTest.java?view=diff&rev=485961&r1=485960&r2=485961
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/UsageEnumTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/schema/UsageEnumTest.java
Mon Dec 11 16:08:16 2006
@@ -42,7 +42,7 @@
         assertEquals( UsageEnum.DIRECTORY_OPERATION, UsageEnum.getUsage( "directoryOperation"
) );
         assertEquals( UsageEnum.USER_APPLICATIONS, UsageEnum.getUsage( "userApplications"
) );
         assertEquals( UsageEnum.DISTRIBUTED_OPERATION, UsageEnum.getUsage( "distributedOperation"
) );
-        assertEquals( UsageEnum.DSA_OPERATION, UsageEnum.getUsage( "dsaOperation" ) );
+        assertEquals( UsageEnum.DSA_OPERATION, UsageEnum.getUsage( "dSAOperation" ) );
         assertEquals( null, UsageEnum.getUsage( "azerty" ) );
     }
     
@@ -51,7 +51,7 @@
         assertEquals( "directoryOperation", UsageEnum.render( UsageEnum.DIRECTORY_OPERATION
) );
         assertEquals( "userApplications", UsageEnum.render( UsageEnum.USER_APPLICATIONS )
);
         assertEquals( "distributedOperation", UsageEnum.render( UsageEnum.DISTRIBUTED_OPERATION
) );
-        assertEquals( "dsaOperation", UsageEnum.render( UsageEnum.DSA_OPERATION ) );
+        assertEquals( "dSAOperation", UsageEnum.render( UsageEnum.DSA_OPERATION ) );
         assertEquals( "", UsageEnum.render( null ) );
     }
 }



Mime
View raw message